BasisTheoryClient 2.2.0__tar.gz → 3.0.0__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.
Files changed (319) hide show
  1. basistheoryclient-3.0.0/LICENSE +201 -0
  2. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/PKG-INFO +41 -6
  3. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/README.md +37 -5
  4. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/pyproject.toml +31 -7
  5. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/__init__.py +28 -14
  6. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/account_updater/__init__.py +2 -0
  7. basistheoryclient-3.0.0/src/basis_theory/account_updater/client.py +44 -0
  8. {basistheoryclient-2.2.0/src/basis_theory/apple_pay/domain → basistheoryclient-3.0.0/src/basis_theory/account_updater/jobs}/__init__.py +2 -0
  9. basistheoryclient-3.0.0/src/basis_theory/account_updater/jobs/client.py +259 -0
  10. basistheoryclient-2.2.0/src/basis_theory/account_updater/jobs/client.py → basistheoryclient-3.0.0/src/basis_theory/account_updater/jobs/raw_client.py +102 -161
  11. basistheoryclient-3.0.0/src/basis_theory/account_updater/raw_client.py +13 -0
  12. {basistheoryclient-2.2.0/src/basis_theory/account_updater/jobs → basistheoryclient-3.0.0/src/basis_theory/account_updater/real_time}/__init__.py +2 -0
  13. basistheoryclient-3.0.0/src/basis_theory/account_updater/real_time/client.py +161 -0
  14. basistheoryclient-2.2.0/src/basis_theory/account_updater/real_time/client.py → basistheoryclient-3.0.0/src/basis_theory/account_updater/real_time/raw_client.py +48 -69
  15. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/apple_pay/__init__.py +2 -0
  16. basistheoryclient-3.0.0/src/basis_theory/apple_pay/client.py +267 -0
  17. {basistheoryclient-2.2.0/src/basis_theory/account_updater/real_time → basistheoryclient-3.0.0/src/basis_theory/apple_pay/domain}/__init__.py +2 -0
  18. basistheoryclient-3.0.0/src/basis_theory/apple_pay/domain/client.py +309 -0
  19. basistheoryclient-2.2.0/src/basis_theory/apple_pay/domain/client.py → basistheoryclient-3.0.0/src/basis_theory/apple_pay/domain/raw_client.py +159 -224
  20. basistheoryclient-2.2.0/src/basis_theory/apple_pay/client.py → basistheoryclient-3.0.0/src/basis_theory/apple_pay/raw_client.py +115 -184
  21. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/apple_pay/session/__init__.py +2 -0
  22. basistheoryclient-3.0.0/src/basis_theory/apple_pay/session/client.py +130 -0
  23. basistheoryclient-2.2.0/src/basis_theory/apple_pay/session/client.py → basistheoryclient-3.0.0/src/basis_theory/apple_pay/session/raw_client.py +53 -64
  24. basistheoryclient-3.0.0/src/basis_theory/application_keys/__init__.py +4 -0
  25. basistheoryclient-3.0.0/src/basis_theory/application_keys/client.py +354 -0
  26. basistheoryclient-2.2.0/src/basis_theory/application_keys/client.py → basistheoryclient-3.0.0/src/basis_theory/application_keys/raw_client.py +135 -230
  27. basistheoryclient-3.0.0/src/basis_theory/application_templates/__init__.py +4 -0
  28. basistheoryclient-3.0.0/src/basis_theory/application_templates/client.py +166 -0
  29. basistheoryclient-2.2.0/src/basis_theory/application_templates/client.py → basistheoryclient-3.0.0/src/basis_theory/application_templates/raw_client.py +65 -106
  30. basistheoryclient-3.0.0/src/basis_theory/applications/__init__.py +4 -0
  31. basistheoryclient-3.0.0/src/basis_theory/applications/client.py +582 -0
  32. basistheoryclient-2.2.0/src/basis_theory/applications/client.py → basistheoryclient-3.0.0/src/basis_theory/applications/raw_client.py +212 -351
  33. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/client.py +43 -54
  34. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/core/__init__.py +5 -0
  35. basistheoryclient-3.0.0/src/basis_theory/core/api_error.py +23 -0
  36. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/core/client_wrapper.py +17 -4
  37. basistheoryclient-3.0.0/src/basis_theory/core/force_multipart.py +16 -0
  38. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/core/http_client.py +70 -26
  39. basistheoryclient-3.0.0/src/basis_theory/core/http_response.py +55 -0
  40. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/core/jsonable_encoder.py +0 -1
  41. basistheoryclient-3.0.0/src/basis_theory/core/pagination.py +82 -0
  42. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/core/pydantic_utilities.py +70 -111
  43. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/core/serialization.py +7 -3
  44. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/documents/__init__.py +2 -0
  45. basistheoryclient-3.0.0/src/basis_theory/documents/client.py +258 -0
  46. basistheoryclient-3.0.0/src/basis_theory/documents/data/__init__.py +4 -0
  47. basistheoryclient-3.0.0/src/basis_theory/documents/data/client.py +78 -0
  48. basistheoryclient-3.0.0/src/basis_theory/documents/data/raw_client.py +173 -0
  49. basistheoryclient-2.2.0/src/basis_theory/documents/client.py → basistheoryclient-3.0.0/src/basis_theory/documents/raw_client.py +104 -173
  50. basistheoryclient-3.0.0/src/basis_theory/enrichments/__init__.py +4 -0
  51. basistheoryclient-3.0.0/src/basis_theory/enrichments/client.py +206 -0
  52. basistheoryclient-3.0.0/src/basis_theory/enrichments/raw_client.py +326 -0
  53. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/errors/__init__.py +2 -0
  54. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/errors/bad_request_error.py +4 -2
  55. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/errors/conflict_error.py +4 -2
  56. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/errors/forbidden_error.py +4 -2
  57. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/errors/internal_server_error.py +4 -2
  58. basistheoryclient-3.0.0/src/basis_theory/errors/not_found_error.py +10 -0
  59. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/errors/service_unavailable_error.py +4 -2
  60. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/errors/unauthorized_error.py +4 -2
  61. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/errors/unprocessable_entity_error.py +4 -2
  62. basistheoryclient-3.0.0/src/basis_theory/google_pay/__init__.py +4 -0
  63. basistheoryclient-3.0.0/src/basis_theory/google_pay/client.py +259 -0
  64. basistheoryclient-3.0.0/src/basis_theory/google_pay/raw_client.py +522 -0
  65. basistheoryclient-3.0.0/src/basis_theory/keys/__init__.py +4 -0
  66. basistheoryclient-3.0.0/src/basis_theory/keys/client.py +313 -0
  67. basistheoryclient-2.2.0/src/basis_theory/keys/client.py → basistheoryclient-3.0.0/src/basis_theory/keys/raw_client.py +160 -239
  68. basistheoryclient-3.0.0/src/basis_theory/logs/__init__.py +4 -0
  69. basistheoryclient-3.0.0/src/basis_theory/logs/client.py +240 -0
  70. basistheoryclient-2.2.0/src/basis_theory/logs/client.py → basistheoryclient-3.0.0/src/basis_theory/logs/raw_client.py +83 -128
  71. basistheoryclient-3.0.0/src/basis_theory/network_tokens/__init__.py +4 -0
  72. basistheoryclient-3.0.0/src/basis_theory/network_tokens/client.py +478 -0
  73. basistheoryclient-2.2.0/src/basis_theory/network_tokens/client.py → basistheoryclient-3.0.0/src/basis_theory/network_tokens/raw_client.py +268 -377
  74. basistheoryclient-3.0.0/src/basis_theory/permissions/__init__.py +4 -0
  75. basistheoryclient-3.0.0/src/basis_theory/permissions/client.py +106 -0
  76. basistheoryclient-2.2.0/src/basis_theory/permissions/client.py → basistheoryclient-3.0.0/src/basis_theory/permissions/raw_client.py +41 -60
  77. basistheoryclient-3.0.0/src/basis_theory/proxies/__init__.py +4 -0
  78. basistheoryclient-3.0.0/src/basis_theory/proxies/client.py +799 -0
  79. basistheoryclient-2.2.0/src/basis_theory/proxies/client.py → basistheoryclient-3.0.0/src/basis_theory/proxies/raw_client.py +293 -366
  80. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/reactors/__init__.py +2 -0
  81. basistheoryclient-3.0.0/src/basis_theory/reactors/client.py +823 -0
  82. basistheoryclient-2.2.0/src/basis_theory/reactors/client.py → basistheoryclient-3.0.0/src/basis_theory/reactors/raw_client.py +306 -495
  83. basistheoryclient-3.0.0/src/basis_theory/reactors/results/__init__.py +4 -0
  84. basistheoryclient-3.0.0/src/basis_theory/reactors/results/client.py +115 -0
  85. basistheoryclient-2.2.0/src/basis_theory/reactors/results/client.py → basistheoryclient-3.0.0/src/basis_theory/reactors/results/raw_client.py +50 -69
  86. basistheoryclient-3.0.0/src/basis_theory/roles/__init__.py +4 -0
  87. basistheoryclient-3.0.0/src/basis_theory/roles/client.py +98 -0
  88. basistheoryclient-2.2.0/src/basis_theory/roles/client.py → basistheoryclient-3.0.0/src/basis_theory/roles/raw_client.py +36 -55
  89. basistheoryclient-3.0.0/src/basis_theory/sessions/__init__.py +4 -0
  90. basistheoryclient-3.0.0/src/basis_theory/sessions/client.py +222 -0
  91. basistheoryclient-2.2.0/src/basis_theory/sessions/client.py → basistheoryclient-3.0.0/src/basis_theory/sessions/raw_client.py +85 -126
  92. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/tenants/__init__.py +2 -0
  93. basistheoryclient-3.0.0/src/basis_theory/tenants/client.py +59 -0
  94. basistheoryclient-3.0.0/src/basis_theory/tenants/connections/__init__.py +4 -0
  95. basistheoryclient-3.0.0/src/basis_theory/tenants/connections/client.py +198 -0
  96. basistheoryclient-2.2.0/src/basis_theory/tenants/connections/client.py → basistheoryclient-3.0.0/src/basis_theory/tenants/connections/raw_client.py +75 -118
  97. basistheoryclient-3.0.0/src/basis_theory/tenants/invitations/__init__.py +4 -0
  98. basistheoryclient-3.0.0/src/basis_theory/tenants/invitations/client.py +458 -0
  99. basistheoryclient-2.2.0/src/basis_theory/tenants/invitations/client.py → basistheoryclient-3.0.0/src/basis_theory/tenants/invitations/raw_client.py +173 -292
  100. basistheoryclient-3.0.0/src/basis_theory/tenants/members/__init__.py +4 -0
  101. basistheoryclient-3.0.0/src/basis_theory/tenants/members/client.py +296 -0
  102. basistheoryclient-2.2.0/src/basis_theory/tenants/members/client.py → basistheoryclient-3.0.0/src/basis_theory/tenants/members/raw_client.py +102 -171
  103. basistheoryclient-3.0.0/src/basis_theory/tenants/owner/__init__.py +4 -0
  104. basistheoryclient-3.0.0/src/basis_theory/tenants/owner/client.py +98 -0
  105. basistheoryclient-2.2.0/src/basis_theory/tenants/owner/client.py → basistheoryclient-3.0.0/src/basis_theory/tenants/owner/raw_client.py +43 -60
  106. basistheoryclient-3.0.0/src/basis_theory/tenants/raw_client.py +13 -0
  107. basistheoryclient-3.0.0/src/basis_theory/tenants/self_/__init__.py +4 -0
  108. basistheoryclient-3.0.0/src/basis_theory/tenants/self_/client.py +308 -0
  109. basistheoryclient-2.2.0/src/basis_theory/tenants/self_/client.py → basistheoryclient-3.0.0/src/basis_theory/tenants/self_/raw_client.py +140 -219
  110. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/threeds/__init__.py +2 -0
  111. basistheoryclient-3.0.0/src/basis_theory/threeds/client.py +39 -0
  112. basistheoryclient-3.0.0/src/basis_theory/threeds/raw_client.py +13 -0
  113. basistheoryclient-3.0.0/src/basis_theory/threeds/sessions/__init__.py +4 -0
  114. basistheoryclient-3.0.0/src/basis_theory/threeds/sessions/client.py +521 -0
  115. basistheoryclient-2.2.0/src/basis_theory/threeds/sessions/client.py → basistheoryclient-3.0.0/src/basis_theory/threeds/sessions/raw_client.py +138 -231
  116. basistheoryclient-3.0.0/src/basis_theory/token_intents/__init__.py +4 -0
  117. basistheoryclient-3.0.0/src/basis_theory/token_intents/client.py +258 -0
  118. basistheoryclient-2.2.0/src/basis_theory/token_intents/client.py → basistheoryclient-3.0.0/src/basis_theory/token_intents/raw_client.py +104 -175
  119. basistheoryclient-3.0.0/src/basis_theory/tokens/__init__.py +4 -0
  120. basistheoryclient-3.0.0/src/basis_theory/tokens/client.py +1015 -0
  121. basistheoryclient-2.2.0/src/basis_theory/tokens/client.py → basistheoryclient-3.0.0/src/basis_theory/tokens/raw_client.py +363 -550
  122. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/__init__.py +26 -10
  123. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/access_rule.py +3 -3
  124. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/account_updater_job.py +5 -5
  125. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/account_updater_job_list.py +4 -4
  126. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/account_updater_job_list_pagination.py +2 -2
  127. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/account_updater_real_time_response.py +3 -3
  128. basistheoryclient-3.0.0/src/basis_theory/types/additional_card_detail.py +23 -0
  129. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/additional_card_details.py +3 -3
  130. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/address.py +2 -2
  131. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/apple_pay_create_response.py +3 -3
  132. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/apple_pay_create_token_response.py +4 -4
  133. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/apple_pay_domain_registration_response.py +3 -3
  134. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/apple_pay_method_token.py +5 -5
  135. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/apple_pay_token.py +5 -5
  136. basistheoryclient-2.2.0/src/basis_theory/types/apple_pay_domain_registration_list_request.py → basistheoryclient-3.0.0/src/basis_theory/types/apple_pay_tokenize_request.py +5 -4
  137. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/apple_pay_tokenize_response.py +3 -3
  138. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/application.py +5 -5
  139. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/application_key.py +3 -3
  140. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/application_paginated_list.py +4 -4
  141. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/application_template.py +3 -3
  142. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/assurance_details.py +2 -2
  143. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/async_react_response.py +4 -4
  144. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/authenticate_three_ds_session_request.py +6 -6
  145. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/authentication.py +3 -3
  146. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/authentication_response.py +2 -2
  147. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/bank_details.py +2 -2
  148. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/bank_verification_response.py +2 -2
  149. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/bin_details.py +4 -4
  150. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/bin_details_bank.py +2 -2
  151. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/bin_details_country.py +2 -2
  152. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/bin_details_product.py +2 -2
  153. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/card.py +2 -2
  154. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/card_details.py +4 -4
  155. basistheoryclient-3.0.0/src/basis_theory/types/card_details_response.py +25 -0
  156. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/card_issuer.py +2 -2
  157. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/card_issuer_country.py +2 -2
  158. basistheoryclient-2.2.0/src/basis_theory/types/apple_pay_domain_registration_request.py → basistheoryclient-3.0.0/src/basis_theory/types/card_issuer_details.py +5 -4
  159. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/cardholder_info.py +3 -3
  160. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/client_encryption_key_metadata_response.py +4 -4
  161. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/client_encryption_key_response.py +4 -4
  162. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/condition.py +2 -2
  163. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/create_account_updater_job_request.py +2 -2
  164. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/create_document_request.py +2 -2
  165. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/create_reactor_formula_request.py +3 -3
  166. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/create_session_response.py +3 -3
  167. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/create_tenant_connection_response.py +2 -2
  168. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/create_three_ds_session_response.py +3 -3
  169. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/create_token_intent_response.py +7 -7
  170. basistheoryclient-3.0.0/src/basis_theory/types/create_token_request.py +32 -0
  171. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/cursor_pagination.py +2 -2
  172. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/document.py +3 -3
  173. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/domain_registration_response.py +2 -2
  174. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/get_applications.py +2 -2
  175. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/get_logs.py +3 -3
  176. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/get_permissions.py +2 -2
  177. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/get_proxies.py +2 -2
  178. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/get_reactor_formulas.py +2 -2
  179. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/get_reactors.py +2 -2
  180. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/get_tenant_invitations.py +3 -3
  181. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/get_tenant_members.py +2 -2
  182. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/get_tokens.py +2 -2
  183. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/get_tokens_v2.py +2 -2
  184. basistheoryclient-3.0.0/src/basis_theory/types/google_pay_create_response.py +22 -0
  185. basistheoryclient-3.0.0/src/basis_theory/types/google_pay_create_token_response.py +29 -0
  186. basistheoryclient-2.2.0/src/basis_theory/types/google_payment_method_token.py → basistheoryclient-3.0.0/src/basis_theory/types/google_pay_method_token.py +5 -5
  187. basistheoryclient-3.0.0/src/basis_theory/types/google_pay_token.py +34 -0
  188. basistheoryclient-3.0.0/src/basis_theory/types/google_pay_tokenize_request.py +20 -0
  189. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/google_pay_tokenize_response.py +3 -3
  190. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/header.py +4 -4
  191. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/intermediate_signing_key.py +4 -4
  192. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/log.py +3 -3
  193. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/log_entity_type.py +2 -2
  194. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/log_paginated_list.py +4 -4
  195. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/network_token.py +6 -6
  196. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/network_token_cryptogram.py +2 -2
  197. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/network_token_extras.py +2 -2
  198. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/pagination.py +2 -2
  199. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/payment_data.py +3 -3
  200. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/permission.py +2 -2
  201. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/privacy.py +2 -2
  202. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/problem_details.py +2 -2
  203. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/proxy.py +6 -4
  204. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/proxy_paginated_list.py +3 -3
  205. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/proxy_transform.py +4 -2
  206. basistheoryclient-3.0.0/src/basis_theory/types/proxy_transform_options.py +23 -0
  207. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/react_response.py +2 -2
  208. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/reactor.py +5 -5
  209. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/reactor_formula.py +4 -4
  210. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/reactor_formula_configuration.py +2 -2
  211. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/reactor_formula_paginated_list.py +3 -3
  212. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/reactor_formula_request_parameter.py +2 -2
  213. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/reactor_paginated_list.py +3 -3
  214. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/role.py +2 -2
  215. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/string_string_key_value_pair.py +2 -2
  216. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/submerchant_authentication_response.py +2 -2
  217. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/tenant.py +3 -3
  218. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/tenant_connection_options.py +2 -2
  219. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/tenant_invitation_response.py +4 -4
  220. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/tenant_invitation_response_paginated_list.py +3 -3
  221. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/tenant_member_response.py +4 -4
  222. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/tenant_member_response_paginated_list.py +3 -3
  223. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/tenant_usage_report.py +2 -2
  224. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/three_ds_acs_rendering_type.py +4 -4
  225. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/three_ds_address.py +2 -2
  226. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/three_ds_authentication.py +3 -3
  227. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/three_ds_callback_urls.py +2 -2
  228. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/three_ds_cardholder_account_info.py +2 -2
  229. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/three_ds_cardholder_authentication_info.py +2 -2
  230. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/three_ds_cardholder_info.py +5 -5
  231. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/three_ds_cardholder_phone_number.py +2 -2
  232. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/three_ds_device_info.py +3 -3
  233. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/three_ds_merchant_info.py +3 -3
  234. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/three_ds_merchant_risk_info.py +2 -2
  235. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/three_ds_message_extension.py +2 -2
  236. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/three_ds_method.py +2 -2
  237. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/three_ds_mobile_sdk_render_options.py +2 -2
  238. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/three_ds_prior_authentication_info.py +2 -2
  239. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/three_ds_purchase_info.py +2 -2
  240. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/three_ds_requestor_info.py +2 -2
  241. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/three_ds_session.py +6 -6
  242. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/three_ds_version.py +2 -2
  243. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/token.py +8 -8
  244. basistheoryclient-2.2.0/src/basis_theory/types/apple_pay_domain_deregistration_request.py → basistheoryclient-3.0.0/src/basis_theory/types/token_authentication.py +5 -4
  245. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/token_cursor_paginated_list.py +3 -3
  246. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/token_enrichments.py +3 -3
  247. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/token_enrichments_card_details.py +2 -2
  248. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/token_extras.py +3 -3
  249. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/token_intent.py +7 -7
  250. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/token_intent_extras.py +3 -3
  251. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/token_paginated_list.py +3 -3
  252. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/token_service_provider_details.py +3 -3
  253. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/update_privacy.py +2 -2
  254. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/update_reactor_formula_request.py +3 -3
  255. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/user.py +2 -2
  256. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/validation_problem_details.py +2 -2
  257. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/webhook.py +4 -4
  258. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/webhook_list.py +4 -4
  259. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/webhook_list_pagination.py +2 -2
  260. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/webhooks/__init__.py +2 -0
  261. basistheoryclient-3.0.0/src/basis_theory/webhooks/client.py +543 -0
  262. basistheoryclient-3.0.0/src/basis_theory/webhooks/events/__init__.py +4 -0
  263. basistheoryclient-3.0.0/src/basis_theory/webhooks/events/client.py +102 -0
  264. basistheoryclient-2.2.0/src/basis_theory/webhooks/events/client.py → basistheoryclient-3.0.0/src/basis_theory/webhooks/events/raw_client.py +34 -55
  265. basistheoryclient-2.2.0/src/basis_theory/webhooks/client.py → basistheoryclient-3.0.0/src/basis_theory/webhooks/raw_client.py +191 -340
  266. basistheoryclient-2.2.0/src/basis_theory/account_updater/client.py +0 -22
  267. basistheoryclient-2.2.0/src/basis_theory/application_keys/__init__.py +0 -2
  268. basistheoryclient-2.2.0/src/basis_theory/application_templates/__init__.py +0 -2
  269. basistheoryclient-2.2.0/src/basis_theory/applications/__init__.py +0 -2
  270. basistheoryclient-2.2.0/src/basis_theory/connection/__init__.py +0 -5
  271. basistheoryclient-2.2.0/src/basis_theory/connection/apple_pay/__init__.py +0 -5
  272. basistheoryclient-2.2.0/src/basis_theory/connection/apple_pay/client.py +0 -241
  273. basistheoryclient-2.2.0/src/basis_theory/connection/apple_pay/domain/__init__.py +0 -2
  274. basistheoryclient-2.2.0/src/basis_theory/connection/apple_pay/domain/client.py +0 -696
  275. basistheoryclient-2.2.0/src/basis_theory/connection/apple_pay/session/__init__.py +0 -2
  276. basistheoryclient-2.2.0/src/basis_theory/connection/apple_pay/session/client.py +0 -236
  277. basistheoryclient-2.2.0/src/basis_theory/connection/client.py +0 -18
  278. basistheoryclient-2.2.0/src/basis_theory/core/api_error.py +0 -15
  279. basistheoryclient-2.2.0/src/basis_theory/core/pagination.py +0 -88
  280. basistheoryclient-2.2.0/src/basis_theory/documents/data/__init__.py +0 -2
  281. basistheoryclient-2.2.0/src/basis_theory/documents/data/client.py +0 -150
  282. basistheoryclient-2.2.0/src/basis_theory/enrichments/__init__.py +0 -2
  283. basistheoryclient-2.2.0/src/basis_theory/enrichments/client.py +0 -226
  284. basistheoryclient-2.2.0/src/basis_theory/errors/not_found_error.py +0 -9
  285. basistheoryclient-2.2.0/src/basis_theory/googlepay/__init__.py +0 -2
  286. basistheoryclient-2.2.0/src/basis_theory/googlepay/client.py +0 -254
  287. basistheoryclient-2.2.0/src/basis_theory/keys/__init__.py +0 -2
  288. basistheoryclient-2.2.0/src/basis_theory/logs/__init__.py +0 -2
  289. basistheoryclient-2.2.0/src/basis_theory/network_tokens/__init__.py +0 -2
  290. basistheoryclient-2.2.0/src/basis_theory/permissions/__init__.py +0 -2
  291. basistheoryclient-2.2.0/src/basis_theory/proxies/__init__.py +0 -2
  292. basistheoryclient-2.2.0/src/basis_theory/reactors/results/__init__.py +0 -2
  293. basistheoryclient-2.2.0/src/basis_theory/roles/__init__.py +0 -2
  294. basistheoryclient-2.2.0/src/basis_theory/sessions/__init__.py +0 -2
  295. basistheoryclient-2.2.0/src/basis_theory/tenants/client.py +0 -34
  296. basistheoryclient-2.2.0/src/basis_theory/tenants/connections/__init__.py +0 -2
  297. basistheoryclient-2.2.0/src/basis_theory/tenants/invitations/__init__.py +0 -2
  298. basistheoryclient-2.2.0/src/basis_theory/tenants/members/__init__.py +0 -2
  299. basistheoryclient-2.2.0/src/basis_theory/tenants/owner/__init__.py +0 -2
  300. basistheoryclient-2.2.0/src/basis_theory/tenants/self_/__init__.py +0 -2
  301. basistheoryclient-2.2.0/src/basis_theory/threeds/client.py +0 -18
  302. basistheoryclient-2.2.0/src/basis_theory/threeds/sessions/__init__.py +0 -2
  303. basistheoryclient-2.2.0/src/basis_theory/token_intents/__init__.py +0 -2
  304. basistheoryclient-2.2.0/src/basis_theory/tokens/__init__.py +0 -2
  305. basistheoryclient-2.2.0/src/basis_theory/types/apple_pay_session_request.py +0 -21
  306. basistheoryclient-2.2.0/src/basis_theory/webhooks/events/__init__.py +0 -2
  307. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/core/datetime_utils.py +0 -0
  308. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/core/file.py +0 -0
  309. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/core/query_encoder.py +0 -0
  310. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/core/remove_none_from_dict.py +0 -0
  311. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/core/request_options.py +0 -0
  312. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/environment.py +0 -0
  313. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/py.typed +0 -0
  314. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/account_updater_job_status.py +0 -0
  315. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/event_types.py +0 -0
  316. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/public_key.py +0 -0
  317. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/tenant_invitation_status.py +0 -0
  318. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/types/webhook_status.py +0 -0
  319. {basistheoryclient-2.2.0 → basistheoryclient-3.0.0}/src/basis_theory/version.py +0 -0
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright (c) 2025 Basis-theory.
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -1,9 +1,11 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: BasisTheoryClient
3
- Version: 2.2.0
3
+ Version: 3.0.0
4
4
  Summary:
5
+ License: Apache-2.0
5
6
  Requires-Python: >=3.8,<4.0
6
7
  Classifier: Intended Audience :: Developers
8
+ Classifier: License :: OSI Approved :: Apache Software License
7
9
  Classifier: Operating System :: MacOS
8
10
  Classifier: Operating System :: Microsoft :: Windows
9
11
  Classifier: Operating System :: OS Independent
@@ -21,7 +23,7 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
21
23
  Classifier: Typing :: Typed
22
24
  Requires-Dist: httpx (>=0.21.2)
23
25
  Requires-Dist: pydantic (>=1.9.2)
24
- Requires-Dist: pydantic-core (>=2.18.2,<3.0.0)
26
+ Requires-Dist: pydantic-core (>=2.18.2)
25
27
  Requires-Dist: typing_extensions (>=4.0.0)
26
28
  Description-Content-Type: text/markdown
27
29
 
@@ -50,6 +52,7 @@ Instantiate and use the client with the following:
50
52
  from basis_theory import BasisTheory
51
53
 
52
54
  client = BasisTheory(
55
+ correlation_id="YOUR_CORRELATION_ID",
53
56
  api_key="YOUR_API_KEY",
54
57
  )
55
58
  client.tenants.self_.get()
@@ -65,6 +68,7 @@ import asyncio
65
68
  from basis_theory import AsyncBasisTheory
66
69
 
67
70
  client = AsyncBasisTheory(
71
+ correlation_id="YOUR_CORRELATION_ID",
68
72
  api_key="YOUR_API_KEY",
69
73
  )
70
74
 
@@ -99,6 +103,7 @@ Paginated requests will return a `SyncPager` or `AsyncPager`, which can be used
99
103
  from basis_theory import BasisTheory
100
104
 
101
105
  client = BasisTheory(
106
+ correlation_id="YOUR_CORRELATION_ID",
102
107
  api_key="YOUR_API_KEY",
103
108
  )
104
109
  response = client.applications.list()
@@ -111,13 +116,37 @@ for page in response.iter_pages():
111
116
 
112
117
  ## Advanced
113
118
 
119
+ ### Access Raw Response Data
120
+
121
+ The SDK provides access to raw response data, including headers, through the `.with_raw_response` property.
122
+ The `.with_raw_response` property returns a "raw" client that can be used to access the `.headers` and `.data` attributes.
123
+
124
+ ```python
125
+ from basis_theory import BasisTheory
126
+
127
+ client = BasisTheory(
128
+ ...,
129
+ )
130
+ response = client.tenants.self_.with_raw_response.get(...)
131
+ print(response.headers) # access the response headers
132
+ print(response.data) # access the underlying object
133
+ pager = client.applications.list(...)
134
+ print(pager.response.headers) # access the response headers for the first page
135
+ for item in pager:
136
+ print(item) # access the underlying object(s)
137
+ for page in pager.iter_pages():
138
+ print(page.response.headers) # access the response headers for each page
139
+ for item in page:
140
+ print(item) # access the underlying object(s)
141
+ ```
142
+
114
143
  ### Retries
115
144
 
116
145
  The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long
117
- as the request is deemed retriable and the number of retry attempts has not grown larger than the configured
146
+ as the request is deemed retryable and the number of retry attempts has not grown larger than the configured
118
147
  retry limit (default: 2).
119
148
 
120
- A request is deemed retriable when any of the following HTTP status codes is returned:
149
+ A request is deemed retryable when any of the following HTTP status codes is returned:
121
150
 
122
151
  - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
123
152
  - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
@@ -126,7 +155,7 @@ A request is deemed retriable when any of the following HTTP status codes is ret
126
155
  Use the `max_retries` request option to configure this behavior.
127
156
 
128
157
  ```python
129
- client.tenants.self_.get(..., {
158
+ client.tenants.self_.get(..., request_options={
130
159
  "max_retries": 1
131
160
  })
132
161
  ```
@@ -146,7 +175,7 @@ client = BasisTheory(
146
175
 
147
176
 
148
177
  # Override timeout for a specific method
149
- client.tenants.self_.get(..., {
178
+ client.tenants.self_.get(..., request_options={
150
179
  "timeout_in_seconds": 1
151
180
  })
152
181
  ```
@@ -155,6 +184,7 @@ client.tenants.self_.get(..., {
155
184
 
156
185
  You can override the `httpx` client to customize it for your use-case. Some common use-cases include support for proxies
157
186
  and transports.
187
+
158
188
  ```python
159
189
  import httpx
160
190
  from basis_theory import BasisTheory
@@ -177,3 +207,8 @@ a proof of concept, but know that we will not be able to merge it as-is. We sugg
177
207
  an issue first to discuss with us!
178
208
 
179
209
  On the other hand, contributions to the README are always very welcome!
210
+ ## Reference
211
+
212
+ A full reference for this library is available [here](https://github.com/Basis-Theory/python-sdk/blob/HEAD/./reference.md).
213
+
214
+
@@ -23,6 +23,7 @@ Instantiate and use the client with the following:
23
23
  from basis_theory import BasisTheory
24
24
 
25
25
  client = BasisTheory(
26
+ correlation_id="YOUR_CORRELATION_ID",
26
27
  api_key="YOUR_API_KEY",
27
28
  )
28
29
  client.tenants.self_.get()
@@ -38,6 +39,7 @@ import asyncio
38
39
  from basis_theory import AsyncBasisTheory
39
40
 
40
41
  client = AsyncBasisTheory(
42
+ correlation_id="YOUR_CORRELATION_ID",
41
43
  api_key="YOUR_API_KEY",
42
44
  )
43
45
 
@@ -72,6 +74,7 @@ Paginated requests will return a `SyncPager` or `AsyncPager`, which can be used
72
74
  from basis_theory import BasisTheory
73
75
 
74
76
  client = BasisTheory(
77
+ correlation_id="YOUR_CORRELATION_ID",
75
78
  api_key="YOUR_API_KEY",
76
79
  )
77
80
  response = client.applications.list()
@@ -84,13 +87,37 @@ for page in response.iter_pages():
84
87
 
85
88
  ## Advanced
86
89
 
90
+ ### Access Raw Response Data
91
+
92
+ The SDK provides access to raw response data, including headers, through the `.with_raw_response` property.
93
+ The `.with_raw_response` property returns a "raw" client that can be used to access the `.headers` and `.data` attributes.
94
+
95
+ ```python
96
+ from basis_theory import BasisTheory
97
+
98
+ client = BasisTheory(
99
+ ...,
100
+ )
101
+ response = client.tenants.self_.with_raw_response.get(...)
102
+ print(response.headers) # access the response headers
103
+ print(response.data) # access the underlying object
104
+ pager = client.applications.list(...)
105
+ print(pager.response.headers) # access the response headers for the first page
106
+ for item in pager:
107
+ print(item) # access the underlying object(s)
108
+ for page in pager.iter_pages():
109
+ print(page.response.headers) # access the response headers for each page
110
+ for item in page:
111
+ print(item) # access the underlying object(s)
112
+ ```
113
+
87
114
  ### Retries
88
115
 
89
116
  The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long
90
- as the request is deemed retriable and the number of retry attempts has not grown larger than the configured
117
+ as the request is deemed retryable and the number of retry attempts has not grown larger than the configured
91
118
  retry limit (default: 2).
92
119
 
93
- A request is deemed retriable when any of the following HTTP status codes is returned:
120
+ A request is deemed retryable when any of the following HTTP status codes is returned:
94
121
 
95
122
  - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
96
123
  - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
@@ -99,7 +126,7 @@ A request is deemed retriable when any of the following HTTP status codes is ret
99
126
  Use the `max_retries` request option to configure this behavior.
100
127
 
101
128
  ```python
102
- client.tenants.self_.get(..., {
129
+ client.tenants.self_.get(..., request_options={
103
130
  "max_retries": 1
104
131
  })
105
132
  ```
@@ -119,7 +146,7 @@ client = BasisTheory(
119
146
 
120
147
 
121
148
  # Override timeout for a specific method
122
- client.tenants.self_.get(..., {
149
+ client.tenants.self_.get(..., request_options={
123
150
  "timeout_in_seconds": 1
124
151
  })
125
152
  ```
@@ -128,6 +155,7 @@ client.tenants.self_.get(..., {
128
155
 
129
156
  You can override the `httpx` client to customize it for your use-case. Some common use-cases include support for proxies
130
157
  and transports.
158
+
131
159
  ```python
132
160
  import httpx
133
161
  from basis_theory import BasisTheory
@@ -149,4 +177,8 @@ otherwise they would be overwritten upon the next generated release. Feel free t
149
177
  a proof of concept, but know that we will not be able to merge it as-is. We suggest opening
150
178
  an issue first to discuss with us!
151
179
 
152
- On the other hand, contributions to the README are always very welcome!
180
+ On the other hand, contributions to the README are always very welcome!
181
+ ## Reference
182
+
183
+ A full reference for this library is available [here](https://github.com/Basis-Theory/python-sdk/blob/HEAD/./reference.md).
184
+
@@ -1,11 +1,14 @@
1
+ [project]
2
+ name = "BasisTheoryClient"
3
+
1
4
  [tool.poetry]
2
5
  name = "BasisTheoryClient"
3
- version = "2.2.0"
6
+ version = "3.0.0"
4
7
  description = ""
5
8
  readme = "README.md"
6
9
  authors = []
7
10
  keywords = []
8
-
11
+ license = "Apache-2.0"
9
12
  classifiers = [
10
13
  "Intended Audience :: Developers",
11
14
  "Programming Language :: Python",
@@ -21,7 +24,8 @@ classifiers = [
21
24
  "Operating System :: POSIX :: Linux",
22
25
  "Operating System :: Microsoft :: Windows",
23
26
  "Topic :: Software Development :: Libraries :: Python Modules",
24
- "Typing :: Typed"
27
+ "Typing :: Typed",
28
+ "License :: OSI Approved :: Apache Software License"
25
29
  ]
26
30
  packages = [
27
31
  { include = "basis_theory", from = "src"}
@@ -34,16 +38,16 @@ Repository = 'https://github.com/Basis-Theory/python-sdk'
34
38
  python = "^3.8"
35
39
  httpx = ">=0.21.2"
36
40
  pydantic = ">= 1.9.2"
37
- pydantic-core = "^2.18.2"
41
+ pydantic-core = ">=2.18.2"
38
42
  typing_extensions = ">= 4.0.0"
39
43
 
40
- [tool.poetry.dev-dependencies]
41
- mypy = "1.0.1"
44
+ [tool.poetry.group.dev.dependencies]
45
+ mypy = "==1.13.0"
42
46
  pytest = "^7.4.0"
43
47
  pytest-asyncio = "^0.23.5"
44
48
  python-dateutil = "^2.9.0"
45
49
  types-python-dateutil = "^2.9.0.20240316"
46
- ruff = "^0.5.6"
50
+ ruff = "==0.11.5"
47
51
 
48
52
  [tool.pytest.ini_options]
49
53
  testpaths = [ "tests" ]
@@ -55,6 +59,26 @@ plugins = ["pydantic.mypy"]
55
59
  [tool.ruff]
56
60
  line-length = 120
57
61
 
62
+ [tool.ruff.lint]
63
+ select = [
64
+ "E", # pycodestyle errors
65
+ "F", # pyflakes
66
+ "I", # isort
67
+ ]
68
+ ignore = [
69
+ "E402", # Module level import not at top of file
70
+ "E501", # Line too long
71
+ "E711", # Comparison to `None` should be `cond is not None`
72
+ "E712", # Avoid equality comparisons to `True`; use `if ...:` checks
73
+ "E721", # Use `is` and `is not` for type comparisons, or `isinstance()` for insinstance checks
74
+ "E722", # Do not use bare `except`
75
+ "E731", # Do not assign a `lambda` expression, use a `def`
76
+ "F821", # Undefined name
77
+ "F841" # Local variable ... is assigned to but never used
78
+ ]
79
+
80
+ [tool.ruff.lint.isort]
81
+ section-order = ["future", "standard-library", "third-party", "first-party"]
58
82
 
59
83
  [build-system]
60
84
  requires = ["poetry-core"]
@@ -1,5 +1,7 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
+ # isort: skip_file
4
+
3
5
  from .types import (
4
6
  AccessRule,
5
7
  AccountUpdaterJob,
@@ -7,17 +9,15 @@ from .types import (
7
9
  AccountUpdaterJobListPagination,
8
10
  AccountUpdaterJobStatus,
9
11
  AccountUpdaterRealTimeResponse,
12
+ AdditionalCardDetail,
10
13
  AdditionalCardDetails,
11
14
  Address,
12
15
  ApplePayCreateResponse,
13
16
  ApplePayCreateTokenResponse,
14
- ApplePayDomainDeregistrationRequest,
15
- ApplePayDomainRegistrationListRequest,
16
- ApplePayDomainRegistrationRequest,
17
17
  ApplePayDomainRegistrationResponse,
18
18
  ApplePayMethodToken,
19
- ApplePaySessionRequest,
20
19
  ApplePayToken,
20
+ ApplePayTokenizeRequest,
21
21
  ApplePayTokenizeResponse,
22
22
  Application,
23
23
  ApplicationKey,
@@ -36,8 +36,10 @@ from .types import (
36
36
  BinDetailsProduct,
37
37
  Card,
38
38
  CardDetails,
39
+ CardDetailsResponse,
39
40
  CardIssuer,
40
41
  CardIssuerCountry,
42
+ CardIssuerDetails,
41
43
  CardholderInfo,
42
44
  ClientEncryptionKeyMetadataResponse,
43
45
  ClientEncryptionKeyResponse,
@@ -49,6 +51,7 @@ from .types import (
49
51
  CreateTenantConnectionResponse,
50
52
  CreateThreeDsSessionResponse,
51
53
  CreateTokenIntentResponse,
54
+ CreateTokenRequest,
52
55
  CursorPagination,
53
56
  Document,
54
57
  DomainRegistrationResponse,
@@ -63,8 +66,12 @@ from .types import (
63
66
  GetTenantMembers,
64
67
  GetTokens,
65
68
  GetTokensV2,
69
+ GooglePayCreateResponse,
70
+ GooglePayCreateTokenResponse,
71
+ GooglePayMethodToken,
72
+ GooglePayToken,
73
+ GooglePayTokenizeRequest,
66
74
  GooglePayTokenizeResponse,
67
- GooglePaymentMethodToken,
68
75
  Header,
69
76
  IntermediateSigningKey,
70
77
  Log,
@@ -81,6 +88,7 @@ from .types import (
81
88
  Proxy,
82
89
  ProxyPaginatedList,
83
90
  ProxyTransform,
91
+ ProxyTransformOptions,
84
92
  PublicKey,
85
93
  ReactResponse,
86
94
  Reactor,
@@ -120,6 +128,7 @@ from .types import (
120
128
  ThreeDsSession,
121
129
  ThreeDsVersion,
122
130
  Token,
131
+ TokenAuthentication,
123
132
  TokenCursorPaginatedList,
124
133
  TokenEnrichments,
125
134
  TokenEnrichmentsCardDetails,
@@ -153,10 +162,9 @@ from . import (
153
162
  application_keys,
154
163
  application_templates,
155
164
  applications,
156
- connection,
157
165
  documents,
158
166
  enrichments,
159
- googlepay,
167
+ google_pay,
160
168
  keys,
161
169
  logs,
162
170
  network_tokens,
@@ -182,17 +190,15 @@ __all__ = [
182
190
  "AccountUpdaterJobListPagination",
183
191
  "AccountUpdaterJobStatus",
184
192
  "AccountUpdaterRealTimeResponse",
193
+ "AdditionalCardDetail",
185
194
  "AdditionalCardDetails",
186
195
  "Address",
187
196
  "ApplePayCreateResponse",
188
197
  "ApplePayCreateTokenResponse",
189
- "ApplePayDomainDeregistrationRequest",
190
- "ApplePayDomainRegistrationListRequest",
191
- "ApplePayDomainRegistrationRequest",
192
198
  "ApplePayDomainRegistrationResponse",
193
199
  "ApplePayMethodToken",
194
- "ApplePaySessionRequest",
195
200
  "ApplePayToken",
201
+ "ApplePayTokenizeRequest",
196
202
  "ApplePayTokenizeResponse",
197
203
  "Application",
198
204
  "ApplicationKey",
@@ -215,8 +221,10 @@ __all__ = [
215
221
  "BinDetailsProduct",
216
222
  "Card",
217
223
  "CardDetails",
224
+ "CardDetailsResponse",
218
225
  "CardIssuer",
219
226
  "CardIssuerCountry",
227
+ "CardIssuerDetails",
220
228
  "CardholderInfo",
221
229
  "ClientEncryptionKeyMetadataResponse",
222
230
  "ClientEncryptionKeyResponse",
@@ -229,6 +237,7 @@ __all__ = [
229
237
  "CreateTenantConnectionResponse",
230
238
  "CreateThreeDsSessionResponse",
231
239
  "CreateTokenIntentResponse",
240
+ "CreateTokenRequest",
232
241
  "CursorPagination",
233
242
  "Document",
234
243
  "DomainRegistrationResponse",
@@ -244,8 +253,12 @@ __all__ = [
244
253
  "GetTenantMembers",
245
254
  "GetTokens",
246
255
  "GetTokensV2",
256
+ "GooglePayCreateResponse",
257
+ "GooglePayCreateTokenResponse",
258
+ "GooglePayMethodToken",
259
+ "GooglePayToken",
260
+ "GooglePayTokenizeRequest",
247
261
  "GooglePayTokenizeResponse",
248
- "GooglePaymentMethodToken",
249
262
  "Header",
250
263
  "IntermediateSigningKey",
251
264
  "InternalServerError",
@@ -264,6 +277,7 @@ __all__ = [
264
277
  "Proxy",
265
278
  "ProxyPaginatedList",
266
279
  "ProxyTransform",
280
+ "ProxyTransformOptions",
267
281
  "PublicKey",
268
282
  "ReactResponse",
269
283
  "Reactor",
@@ -304,6 +318,7 @@ __all__ = [
304
318
  "ThreeDsSession",
305
319
  "ThreeDsVersion",
306
320
  "Token",
321
+ "TokenAuthentication",
307
322
  "TokenCursorPaginatedList",
308
323
  "TokenEnrichments",
309
324
  "TokenEnrichmentsCardDetails",
@@ -328,10 +343,9 @@ __all__ = [
328
343
  "application_keys",
329
344
  "application_templates",
330
345
  "applications",
331
- "connection",
332
346
  "documents",
333
347
  "enrichments",
334
- "googlepay",
348
+ "google_pay",
335
349
  "keys",
336
350
  "logs",
337
351
  "network_tokens",
@@ -1,5 +1,7 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
+ # isort: skip_file
4
+
3
5
  from . import jobs, real_time
4
6
 
5
7
  __all__ = ["jobs", "real_time"]