paid-python 0.6.0__tar.gz → 1.0.0a0__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 (174) hide show
  1. {paid_python-0.6.0 → paid_python-1.0.0a0}/PKG-INFO +6 -4
  2. {paid_python-0.6.0 → paid_python-1.0.0a0}/pyproject.toml +20 -46
  3. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/__init__.py +31 -0
  4. paid_python-1.0.0a0/src/paid/client.py +164 -0
  5. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/core/client_wrapper.py +3 -2
  6. paid_python-1.0.0a0/src/paid/customers/__init__.py +7 -0
  7. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/customers/client.py +428 -4
  8. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/customers/raw_client.py +594 -2
  9. paid_python-1.0.0a0/src/paid/customers/types/__init__.py +8 -0
  10. paid_python-1.0.0a0/src/paid/customers/types/customers_check_entitlement_request_view.py +5 -0
  11. paid_python-1.0.0a0/src/paid/customers/types/customers_check_entitlement_response.py +22 -0
  12. paid_python-1.0.0a0/src/paid/orders/client.py +892 -0
  13. paid_python-1.0.0a0/src/paid/orders/raw_client.py +1154 -0
  14. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/plans/client.py +71 -0
  15. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/plans/raw_client.py +121 -2
  16. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/__init__.py +28 -0
  17. paid_python-1.0.0a0/src/paid/types/cancel_renewal_response.py +49 -0
  18. paid_python-1.0.0a0/src/paid/types/contact_create_for_customer.py +37 -0
  19. paid_python-1.0.0a0/src/paid/types/invoice.py +75 -0
  20. paid_python-1.0.0a0/src/paid/types/invoice_status.py +5 -0
  21. paid_python-1.0.0a0/src/paid/types/payment_method.py +58 -0
  22. paid_python-1.0.0a0/src/paid/types/payment_method_card.py +49 -0
  23. paid_python-1.0.0a0/src/paid/types/payment_method_type.py +5 -0
  24. paid_python-1.0.0a0/src/paid/types/payment_method_us_bank_account.py +36 -0
  25. paid_python-1.0.0a0/src/paid/types/payment_method_us_bank_account_account_type.py +5 -0
  26. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/plan_plan_products_item.py +6 -0
  27. paid_python-1.0.0a0/src/paid/types/plan_with_features.py +69 -0
  28. paid_python-1.0.0a0/src/paid/types/plan_with_features_features_item.py +34 -0
  29. paid_python-1.0.0a0/src/paid/types/proration_attribute_update.py +44 -0
  30. paid_python-1.0.0a0/src/paid/types/proration_detail.py +49 -0
  31. paid_python-1.0.0a0/src/paid/types/proration_upgrade_response.py +73 -0
  32. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/signal_v_2.py +5 -5
  33. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/usage/client.py +6 -6
  34. paid_python-0.6.0/src/paid/client.py +0 -635
  35. paid_python-0.6.0/src/paid/orders/client.py +0 -457
  36. paid_python-0.6.0/src/paid/orders/raw_client.py +0 -459
  37. paid_python-0.6.0/src/paid/traces/__init__.py +0 -4
  38. paid_python-0.6.0/vendor/patched-instrumentation-openllmetry/packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/__init__.py +0 -54
  39. paid_python-0.6.0/vendor/patched-instrumentation-openllmetry/packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/shared/__init__.py +0 -399
  40. paid_python-0.6.0/vendor/patched-instrumentation-openllmetry/packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/shared/audio_wrappers.py +0 -247
  41. paid_python-0.6.0/vendor/patched-instrumentation-openllmetry/packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/shared/chat_wrappers.py +0 -1192
  42. paid_python-0.6.0/vendor/patched-instrumentation-openllmetry/packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/shared/completion_wrappers.py +0 -292
  43. paid_python-0.6.0/vendor/patched-instrumentation-openllmetry/packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/shared/config.py +0 -15
  44. paid_python-0.6.0/vendor/patched-instrumentation-openllmetry/packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/shared/embeddings_wrappers.py +0 -311
  45. paid_python-0.6.0/vendor/patched-instrumentation-openllmetry/packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/shared/event_emitter.py +0 -108
  46. paid_python-0.6.0/vendor/patched-instrumentation-openllmetry/packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/shared/event_models.py +0 -41
  47. paid_python-0.6.0/vendor/patched-instrumentation-openllmetry/packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/shared/image_gen_wrappers.py +0 -68
  48. paid_python-0.6.0/vendor/patched-instrumentation-openllmetry/packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/shared/span_utils.py +0 -0
  49. paid_python-0.6.0/vendor/patched-instrumentation-openllmetry/packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/utils.py +0 -213
  50. paid_python-0.6.0/vendor/patched-instrumentation-openllmetry/packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/v0/__init__.py +0 -176
  51. paid_python-0.6.0/vendor/patched-instrumentation-openllmetry/packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/v1/__init__.py +0 -394
  52. paid_python-0.6.0/vendor/patched-instrumentation-openllmetry/packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/v1/assistant_wrappers.py +0 -329
  53. paid_python-0.6.0/vendor/patched-instrumentation-openllmetry/packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/v1/event_handler_wrapper.py +0 -134
  54. paid_python-0.6.0/vendor/patched-instrumentation-openllmetry/packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/v1/responses_wrappers.py +0 -1113
  55. paid_python-0.6.0/vendor/patched-instrumentation-openllmetry/packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/version.py +0 -1
  56. {paid_python-0.6.0 → paid_python-1.0.0a0}/LICENSE +0 -0
  57. {paid_python-0.6.0 → paid_python-1.0.0a0}/README.md +0 -0
  58. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/agents/__init__.py +0 -0
  59. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/agents/client.py +0 -0
  60. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/agents/raw_client.py +0 -0
  61. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/contacts/__init__.py +0 -0
  62. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/contacts/client.py +0 -0
  63. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/contacts/raw_client.py +0 -0
  64. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/core/__init__.py +0 -0
  65. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/core/api_error.py +0 -0
  66. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/core/datetime_utils.py +0 -0
  67. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/core/file.py +0 -0
  68. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/core/force_multipart.py +0 -0
  69. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/core/http_client.py +0 -0
  70. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/core/http_response.py +0 -0
  71. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/core/jsonable_encoder.py +0 -0
  72. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/core/pydantic_utilities.py +0 -0
  73. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/core/query_encoder.py +0 -0
  74. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/core/remove_none_from_dict.py +0 -0
  75. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/core/request_options.py +0 -0
  76. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/core/serialization.py +0 -0
  77. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/environment.py +0 -0
  78. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/errors/__init__.py +0 -0
  79. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/errors/bad_request_error.py +0 -0
  80. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/errors/forbidden_error.py +0 -0
  81. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/errors/internal_server_error.py +0 -0
  82. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/errors/not_found_error.py +0 -0
  83. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/logger.py +0 -0
  84. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/orders/__init__.py +0 -0
  85. {paid_python-0.6.0/src/paid/customers → paid_python-1.0.0a0/src/paid/orders/lines}/__init__.py +0 -0
  86. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/orders/lines/client.py +0 -0
  87. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/orders/lines/raw_client.py +0 -0
  88. {paid_python-0.6.0/src/paid/orders/lines → paid_python-1.0.0a0/src/paid/plans}/__init__.py +0 -0
  89. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/products/__init__.py +0 -0
  90. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/products/client.py +0 -0
  91. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/products/raw_client.py +0 -0
  92. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/products/types/__init__.py +0 -0
  93. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/products/types/product_create_type.py +0 -0
  94. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/py.typed +0 -0
  95. {paid_python-0.6.0/src/paid/plans → paid_python-1.0.0a0/src/paid/traces}/__init__.py +0 -0
  96. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/traces/client.py +0 -0
  97. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/traces/raw_client.py +0 -0
  98. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/tracing/__init__.py +0 -0
  99. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/tracing/autoinstrumentation.py +0 -0
  100. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/tracing/context_data.py +0 -0
  101. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/tracing/context_manager.py +0 -0
  102. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/tracing/distributed_tracing.py +0 -0
  103. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/tracing/signal.py +0 -0
  104. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/tracing/tracing.py +0 -0
  105. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/tracing/wrappers/__init__.py +0 -0
  106. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/tracing/wrappers/anthropic/__init__.py +0 -0
  107. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/tracing/wrappers/anthropic/anthropicWrapper.py +0 -0
  108. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/tracing/wrappers/bedrock/__init__.py +0 -0
  109. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/tracing/wrappers/bedrock/bedrockWrapper.py +0 -0
  110. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/tracing/wrappers/gemini/__init__.py +0 -0
  111. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/tracing/wrappers/gemini/geminiWrapper.py +0 -0
  112. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/tracing/wrappers/langchain/__init__.py +0 -0
  113. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/tracing/wrappers/langchain/paidLangChainCallback.py +0 -0
  114. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/tracing/wrappers/llamaindex/__init__.py +0 -0
  115. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/tracing/wrappers/llamaindex/llamaIndexWrapper.py +0 -0
  116. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/tracing/wrappers/mistral/__init__.py +0 -0
  117. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/tracing/wrappers/mistral/mistralWrapper.py +0 -0
  118. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/tracing/wrappers/openai/__init__.py +0 -0
  119. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/tracing/wrappers/openai/openAiWrapper.py +0 -0
  120. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/tracing/wrappers/openai_agents/__init__.py +0 -0
  121. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/tracing/wrappers/openai_agents/openaiAgentsHook.py +0 -0
  122. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/tracing/wrappers/utils.py +0 -0
  123. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/address.py +0 -0
  124. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/agent.py +0 -0
  125. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/agent_attribute.py +0 -0
  126. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/agent_price_point.py +0 -0
  127. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/agent_price_point_tiers.py +0 -0
  128. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/agent_update.py +0 -0
  129. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/api_error.py +0 -0
  130. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/billing_frequency.py +0 -0
  131. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/charge_type.py +0 -0
  132. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/contact.py +0 -0
  133. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/cost_amount.py +0 -0
  134. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/cost_trace.py +0 -0
  135. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/cost_traces_response.py +0 -0
  136. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/creation_source.py +0 -0
  137. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/creation_state.py +0 -0
  138. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/customer.py +0 -0
  139. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/customer_update.py +0 -0
  140. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/entitlement_usage.py +0 -0
  141. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/error.py +0 -0
  142. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/order.py +0 -0
  143. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/order_line.py +0 -0
  144. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/order_line_attribute.py +0 -0
  145. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/order_line_attribute_create_one.py +0 -0
  146. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/order_line_attribute_pricing.py +0 -0
  147. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/order_line_create.py +0 -0
  148. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/pagination_meta.py +0 -0
  149. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/plan.py +0 -0
  150. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/plan_group.py +0 -0
  151. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/plan_plan_products_item_plan_product_attribute_item.py +0 -0
  152. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/price_point.py +0 -0
  153. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/pricing.py +0 -0
  154. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/pricing_model_type.py +0 -0
  155. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/product.py +0 -0
  156. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/product_type.py +0 -0
  157. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/product_update.py +0 -0
  158. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/product_update_type.py +0 -0
  159. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/salutation.py +0 -0
  160. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/signal.py +0 -0
  161. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/tax_exempt_status.py +0 -0
  162. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/tier.py +0 -0
  163. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/trace.py +0 -0
  164. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/traces_response.py +0 -0
  165. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/usage_pagination_meta.py +0 -0
  166. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/usage_summaries_response.py +0 -0
  167. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/usage_summary.py +0 -0
  168. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/usage_summary_order.py +0 -0
  169. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/types/usage_summary_order_line.py +0 -0
  170. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/usage/__init__.py +0 -0
  171. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/usage/raw_client.py +0 -0
  172. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/usage/types/__init__.py +0 -0
  173. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/usage/types/usage_check_usage_response.py +0 -0
  174. {paid_python-0.6.0 → paid_python-1.0.0a0}/src/paid/version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: paid-python
3
- Version: 0.6.0
3
+ Version: 1.0.0a0
4
4
  Summary:
5
5
  Requires-Python: >=3.9,<3.14
6
6
  Classifier: Intended Audience :: Developers
@@ -15,9 +15,10 @@ Classifier: Programming Language :: Python :: 3.9
15
15
  Classifier: Programming Language :: Python :: 3.10
16
16
  Classifier: Programming Language :: Python :: 3.11
17
17
  Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.8
18
19
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
19
20
  Classifier: Typing :: Typed
20
- Requires-Dist: httpx (>=0.21.0)
21
+ Requires-Dist: httpx (>=0.21.2)
21
22
  Requires-Dist: mutagen (>=1.47.0)
22
23
  Requires-Dist: openinference-instrumentation-bedrock (>=0.1.0)
23
24
  Requires-Dist: openinference-instrumentation-google-genai (>=0.1.8)
@@ -26,9 +27,10 @@ Requires-Dist: openinference-instrumentation-openai-agents (>=1.0.0)
26
27
  Requires-Dist: opentelemetry-api (>=1.23.0)
27
28
  Requires-Dist: opentelemetry-exporter-otlp-proto-http (>=1.23.0)
28
29
  Requires-Dist: opentelemetry-instrumentation-anthropic (>=0.47.0)
30
+ Requires-Dist: opentelemetry-instrumentation-openai (>=0.50.0)
29
31
  Requires-Dist: opentelemetry-sdk (>=1.23.0)
30
- Requires-Dist: pydantic (>=1.9.0)
31
- Requires-Dist: pydantic-core (>=2.18.0)
32
+ Requires-Dist: pydantic (>=1.9.2)
33
+ Requires-Dist: pydantic-core (>=2.18.2,<3.0.0)
32
34
  Requires-Dist: python-dotenv (>=0.15.0)
33
35
  Requires-Dist: typing_extensions (>=4.0.0)
34
36
  Description-Content-Type: text/markdown
@@ -3,7 +3,7 @@ name = "paid-python"
3
3
 
4
4
  [tool.poetry]
5
5
  name = "paid-python"
6
- version = "0.6.0"
6
+ version = "1.0.0-alpha0"
7
7
  description = ""
8
8
  readme = "README.md"
9
9
  authors = []
@@ -13,6 +13,7 @@ classifiers = [
13
13
  "Intended Audience :: Developers",
14
14
  "Programming Language :: Python",
15
15
  "Programming Language :: Python :: 3",
16
+ "Programming Language :: Python :: 3.8",
16
17
  "Programming Language :: Python :: 3.9",
17
18
  "Programming Language :: Python :: 3.10",
18
19
  "Programming Language :: Python :: 3.11",
@@ -26,8 +27,7 @@ classifiers = [
26
27
  "Typing :: Typed"
27
28
  ]
28
29
  packages = [
29
- { include = "paid", from = "src"},
30
- { include = "opentelemetry", from = "vendor/patched-instrumentation-openllmetry/packages/opentelemetry-instrumentation-openai" },
30
+ { include = "paid", from = "src"}
31
31
  ]
32
32
 
33
33
  [project.urls]
@@ -35,21 +35,21 @@ Repository = 'https://github.com/paid-ai/paid-python'
35
35
 
36
36
  [tool.poetry.dependencies]
37
37
  python = ">=3.9,<3.14"
38
- httpx = ">=0.21.0"
39
- pydantic = ">=1.9.0"
40
- pydantic-core = ">=2.18.0"
41
- typing_extensions = ">= 4.0.0"
42
- opentelemetry-api = ">=1.23.0"
43
- opentelemetry-sdk = ">=1.23.0"
44
- opentelemetry-exporter-otlp-proto-http = ">=1.23.0"
38
+ httpx = ">=0.21.2"
45
39
  mutagen = ">=1.47.0"
46
- python-dotenv = ">=0.15.0"
47
- opentelemetry-instrumentation-anthropic = ">=0.47.0"
48
- # opentelemetry-instrumentation-openai is vendored from git a submodule under vendor/patched-instrumentation-openllmetry
49
- openinference-instrumentation-langchain = ">=0.1.55"
50
- openinference-instrumentation-openai-agents = ">=1.0.0"
51
40
  openinference-instrumentation-bedrock = ">=0.1.0"
52
41
  openinference-instrumentation-google-genai = ">=0.1.8"
42
+ openinference-instrumentation-langchain = ">=0.1.55"
43
+ openinference-instrumentation-openai-agents = ">=1.0.0"
44
+ opentelemetry-api = ">=1.23.0"
45
+ opentelemetry-exporter-otlp-proto-http = ">=1.23.0"
46
+ opentelemetry-instrumentation-anthropic = ">=0.47.0"
47
+ opentelemetry-instrumentation-openai = ">=0.50.0"
48
+ opentelemetry-sdk = ">=1.23.0"
49
+ pydantic = ">= 1.9.2"
50
+ pydantic-core = "^2.18.2"
51
+ python-dotenv = ">=0.15.0"
52
+ typing_extensions = ">= 4.0.0"
53
53
 
54
54
  [tool.poetry.group.dev.dependencies]
55
55
  mypy = "==1.13.0"
@@ -57,48 +57,22 @@ pytest = "^7.4.0"
57
57
  pytest-asyncio = "^0.23.5"
58
58
  python-dateutil = "^2.9.0"
59
59
  types-python-dateutil = "^2.9.0.20240316"
60
- ruff = "==0.11.5"
61
-
62
- # Peer-dependencies, but useful to have for development
63
- mistralai = ">=1.9.0"
64
60
  anthropic = ">=0.57.0"
65
- llama-index-core = ">=0.13.0"
66
- llama-index-llms-openai = ">=0.5.0"
67
61
  google-genai = ">=1.19.0"
68
- openai-agents = ">=0.2.0"
69
62
  langchain-core = ">=0.1.0"
63
+ llama-index-core = ">=0.13.0"
64
+ llama-index-llms-openai = ">=0.5.0"
65
+ mistralai = ">=1.9.0"
70
66
  openai = ">=1.12.0"
67
+ openai-agents = ">=0.2.0"
68
+ ruff = "==0.11.5"
71
69
 
72
70
  [tool.pytest.ini_options]
73
71
  testpaths = [ "tests" ]
74
72
  asyncio_mode = "auto"
75
- # TODO(Ata): remove this once the openai instrumentation isn't vendored anymore
76
- norecursedirs = ["vendor/patched-instrumentation-openllmetry"]
77
73
 
78
74
  [tool.mypy]
79
75
  plugins = ["pydantic.mypy"]
80
- exclude = [
81
- # TODO(Ata): remove this once the openai instrumentation isn't vendored anymore
82
- "^vendor/patched-instrumentation-openllmetry/",
83
- ]
84
-
85
- [[tool.mypy.overrides]]
86
- module = [
87
- "anthropic",
88
- "anthropic.*",
89
- "openai",
90
- "mistralai",
91
- "mistralai.*",
92
- "llama_index.*",
93
- "google.*",
94
- "agents",
95
- "agents.*",
96
- "langchain_core.*",
97
- "opentelemetry.instrumentation.openai", # TODO(Ata): remove this once the openai instrumentation isn't vendored anymore
98
- "opentelemetry.instrumentation.openai.*",
99
- ]
100
- ignore_missing_imports = true
101
- ignore_errors = true # remove once openai instrumentor is upstream
102
76
 
103
77
  [tool.ruff]
104
78
  line-length = 120
@@ -11,8 +11,10 @@ from .types import (
11
11
  AgentUpdate,
12
12
  ApiError,
13
13
  BillingFrequency,
14
+ CancelRenewalResponse,
14
15
  ChargeType,
15
16
  Contact,
17
+ ContactCreateForCustomer,
16
18
  CostAmount,
17
19
  CostTrace,
18
20
  CostTracesResponse,
@@ -22,6 +24,8 @@ from .types import (
22
24
  CustomerUpdate,
23
25
  EntitlementUsage,
24
26
  Error,
27
+ Invoice,
28
+ InvoiceStatus,
25
29
  Order,
26
30
  OrderLine,
27
31
  OrderLineAttribute,
@@ -29,10 +33,17 @@ from .types import (
29
33
  OrderLineAttributePricing,
30
34
  OrderLineCreate,
31
35
  PaginationMeta,
36
+ PaymentMethod,
37
+ PaymentMethodCard,
38
+ PaymentMethodType,
39
+ PaymentMethodUsBankAccount,
40
+ PaymentMethodUsBankAccountAccountType,
32
41
  Plan,
33
42
  PlanGroup,
34
43
  PlanPlanProductsItem,
35
44
  PlanPlanProductsItemPlanProductAttributeItem,
45
+ PlanWithFeatures,
46
+ PlanWithFeaturesFeaturesItem,
36
47
  PricePoint,
37
48
  Pricing,
38
49
  PricingModelType,
@@ -40,6 +51,9 @@ from .types import (
40
51
  ProductType,
41
52
  ProductUpdate,
42
53
  ProductUpdateType,
54
+ ProrationAttributeUpdate,
55
+ ProrationDetail,
56
+ ProrationUpgradeResponse,
43
57
  Salutation,
44
58
  Signal,
45
59
  SignalV2,
@@ -56,6 +70,7 @@ from .types import (
56
70
  from .errors import BadRequestError, ForbiddenError, InternalServerError, NotFoundError
57
71
  from . import agents, contacts, customers, orders, plans, products, traces, usage
58
72
  from .client import AsyncPaid, Paid
73
+ from .customers import CustomersCheckEntitlementRequestView, CustomersCheckEntitlementResponse
59
74
  from .environment import PaidEnvironment
60
75
  from .products import ProductCreateType
61
76
  from .usage import UsageCheckUsageResponse
@@ -72,8 +87,10 @@ __all__ = [
72
87
  "AsyncPaid",
73
88
  "BadRequestError",
74
89
  "BillingFrequency",
90
+ "CancelRenewalResponse",
75
91
  "ChargeType",
76
92
  "Contact",
93
+ "ContactCreateForCustomer",
77
94
  "CostAmount",
78
95
  "CostTrace",
79
96
  "CostTracesResponse",
@@ -81,10 +98,14 @@ __all__ = [
81
98
  "CreationState",
82
99
  "Customer",
83
100
  "CustomerUpdate",
101
+ "CustomersCheckEntitlementRequestView",
102
+ "CustomersCheckEntitlementResponse",
84
103
  "EntitlementUsage",
85
104
  "Error",
86
105
  "ForbiddenError",
87
106
  "InternalServerError",
107
+ "Invoice",
108
+ "InvoiceStatus",
88
109
  "NotFoundError",
89
110
  "Order",
90
111
  "OrderLine",
@@ -95,10 +116,17 @@ __all__ = [
95
116
  "PaginationMeta",
96
117
  "Paid",
97
118
  "PaidEnvironment",
119
+ "PaymentMethod",
120
+ "PaymentMethodCard",
121
+ "PaymentMethodType",
122
+ "PaymentMethodUsBankAccount",
123
+ "PaymentMethodUsBankAccountAccountType",
98
124
  "Plan",
99
125
  "PlanGroup",
100
126
  "PlanPlanProductsItem",
101
127
  "PlanPlanProductsItemPlanProductAttributeItem",
128
+ "PlanWithFeatures",
129
+ "PlanWithFeaturesFeaturesItem",
102
130
  "PricePoint",
103
131
  "Pricing",
104
132
  "PricingModelType",
@@ -107,6 +135,9 @@ __all__ = [
107
135
  "ProductType",
108
136
  "ProductUpdate",
109
137
  "ProductUpdateType",
138
+ "ProrationAttributeUpdate",
139
+ "ProrationDetail",
140
+ "ProrationUpgradeResponse",
110
141
  "Salutation",
111
142
  "Signal",
112
143
  "SignalV2",
@@ -0,0 +1,164 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ import httpx
6
+ from .agents.client import AgentsClient, AsyncAgentsClient
7
+ from .contacts.client import AsyncContactsClient, ContactsClient
8
+ from .core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
9
+ from .customers.client import AsyncCustomersClient, CustomersClient
10
+ from .environment import PaidEnvironment
11
+ from .orders.client import AsyncOrdersClient, OrdersClient
12
+ from .plans.client import AsyncPlansClient, PlansClient
13
+ from .products.client import AsyncProductsClient, ProductsClient
14
+ from .traces.client import AsyncTracesClient, TracesClient
15
+ from .usage.client import AsyncUsageClient, UsageClient
16
+
17
+
18
+ class Paid:
19
+ """
20
+ Use this class to access the different functions within the SDK. You can instantiate any number of clients with different configuration that will propagate to these functions.
21
+
22
+ Parameters
23
+ ----------
24
+ base_url : typing.Optional[str]
25
+ The base url to use for requests from the client.
26
+
27
+ environment : PaidEnvironment
28
+ The environment to use for requests from the client. from .environment import PaidEnvironment
29
+
30
+
31
+
32
+ Defaults to PaidEnvironment.PRODUCTION
33
+
34
+
35
+
36
+ token : typing.Optional[typing.Union[str, typing.Callable[[], str]]]
37
+ timeout : typing.Optional[float]
38
+ The timeout to be used, in seconds, for requests. By default the timeout is 60 seconds, unless a custom httpx client is used, in which case this default is not enforced.
39
+
40
+ follow_redirects : typing.Optional[bool]
41
+ Whether the default httpx client follows redirects or not, this is irrelevant if a custom httpx client is passed in.
42
+
43
+ httpx_client : typing.Optional[httpx.Client]
44
+ The httpx client to use for making requests, a preconfigured client is used by default, however this is useful should you want to pass in any custom httpx configuration.
45
+
46
+ Examples
47
+ --------
48
+ from paid import Paid
49
+
50
+ client = Paid(
51
+ token="YOUR_TOKEN",
52
+ )
53
+ """
54
+
55
+ def __init__(
56
+ self,
57
+ *,
58
+ base_url: typing.Optional[str] = None,
59
+ environment: PaidEnvironment = PaidEnvironment.PRODUCTION,
60
+ token: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = None,
61
+ timeout: typing.Optional[float] = None,
62
+ follow_redirects: typing.Optional[bool] = True,
63
+ httpx_client: typing.Optional[httpx.Client] = None,
64
+ ):
65
+ _defaulted_timeout = (
66
+ timeout if timeout is not None else 60 if httpx_client is None else httpx_client.timeout.read
67
+ )
68
+ self._client_wrapper = SyncClientWrapper(
69
+ base_url=_get_base_url(base_url=base_url, environment=environment),
70
+ token=token,
71
+ httpx_client=httpx_client
72
+ if httpx_client is not None
73
+ else httpx.Client(timeout=_defaulted_timeout, follow_redirects=follow_redirects)
74
+ if follow_redirects is not None
75
+ else httpx.Client(timeout=_defaulted_timeout),
76
+ timeout=_defaulted_timeout,
77
+ )
78
+ self.customers = CustomersClient(client_wrapper=self._client_wrapper)
79
+ self.agents = AgentsClient(client_wrapper=self._client_wrapper)
80
+ self.products = ProductsClient(client_wrapper=self._client_wrapper)
81
+ self.contacts = ContactsClient(client_wrapper=self._client_wrapper)
82
+ self.orders = OrdersClient(client_wrapper=self._client_wrapper)
83
+ self.plans = PlansClient(client_wrapper=self._client_wrapper)
84
+ self.usage = UsageClient(client_wrapper=self._client_wrapper)
85
+ self.traces = TracesClient(client_wrapper=self._client_wrapper)
86
+
87
+
88
+ class AsyncPaid:
89
+ """
90
+ Use this class to access the different functions within the SDK. You can instantiate any number of clients with different configuration that will propagate to these functions.
91
+
92
+ Parameters
93
+ ----------
94
+ base_url : typing.Optional[str]
95
+ The base url to use for requests from the client.
96
+
97
+ environment : PaidEnvironment
98
+ The environment to use for requests from the client. from .environment import PaidEnvironment
99
+
100
+
101
+
102
+ Defaults to PaidEnvironment.PRODUCTION
103
+
104
+
105
+
106
+ token : typing.Optional[typing.Union[str, typing.Callable[[], str]]]
107
+ timeout : typing.Optional[float]
108
+ The timeout to be used, in seconds, for requests. By default the timeout is 60 seconds, unless a custom httpx client is used, in which case this default is not enforced.
109
+
110
+ follow_redirects : typing.Optional[bool]
111
+ Whether the default httpx client follows redirects or not, this is irrelevant if a custom httpx client is passed in.
112
+
113
+ httpx_client : typing.Optional[httpx.AsyncClient]
114
+ The httpx client to use for making requests, a preconfigured client is used by default, however this is useful should you want to pass in any custom httpx configuration.
115
+
116
+ Examples
117
+ --------
118
+ from paid import AsyncPaid
119
+
120
+ client = AsyncPaid(
121
+ token="YOUR_TOKEN",
122
+ )
123
+ """
124
+
125
+ def __init__(
126
+ self,
127
+ *,
128
+ base_url: typing.Optional[str] = None,
129
+ environment: PaidEnvironment = PaidEnvironment.PRODUCTION,
130
+ token: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = None,
131
+ timeout: typing.Optional[float] = None,
132
+ follow_redirects: typing.Optional[bool] = True,
133
+ httpx_client: typing.Optional[httpx.AsyncClient] = None,
134
+ ):
135
+ _defaulted_timeout = (
136
+ timeout if timeout is not None else 60 if httpx_client is None else httpx_client.timeout.read
137
+ )
138
+ self._client_wrapper = AsyncClientWrapper(
139
+ base_url=_get_base_url(base_url=base_url, environment=environment),
140
+ token=token,
141
+ httpx_client=httpx_client
142
+ if httpx_client is not None
143
+ else httpx.AsyncClient(timeout=_defaulted_timeout, follow_redirects=follow_redirects)
144
+ if follow_redirects is not None
145
+ else httpx.AsyncClient(timeout=_defaulted_timeout),
146
+ timeout=_defaulted_timeout,
147
+ )
148
+ self.customers = AsyncCustomersClient(client_wrapper=self._client_wrapper)
149
+ self.agents = AsyncAgentsClient(client_wrapper=self._client_wrapper)
150
+ self.products = AsyncProductsClient(client_wrapper=self._client_wrapper)
151
+ self.contacts = AsyncContactsClient(client_wrapper=self._client_wrapper)
152
+ self.orders = AsyncOrdersClient(client_wrapper=self._client_wrapper)
153
+ self.plans = AsyncPlansClient(client_wrapper=self._client_wrapper)
154
+ self.usage = AsyncUsageClient(client_wrapper=self._client_wrapper)
155
+ self.traces = AsyncTracesClient(client_wrapper=self._client_wrapper)
156
+
157
+
158
+ def _get_base_url(*, base_url: typing.Optional[str] = None, environment: PaidEnvironment) -> str:
159
+ if base_url is not None:
160
+ return base_url
161
+ elif environment is not None:
162
+ return environment.value
163
+ else:
164
+ raise Exception("Please pass in either base_url or environment to construct the client")
@@ -20,9 +20,10 @@ class BaseClientWrapper:
20
20
 
21
21
  def get_headers(self) -> typing.Dict[str, str]:
22
22
  headers: typing.Dict[str, str] = {
23
+ "User-Agent": "paid-python/1.0.0-alpha0",
23
24
  "X-Fern-Language": "Python",
24
- "X-Fern-SDK-Name": "paid",
25
- "X-Fern-SDK-Version": "0.6.0",
25
+ "X-Fern-SDK-Name": "paid-python",
26
+ "X-Fern-SDK-Version": "1.0.0-alpha0",
26
27
  }
27
28
  token = self._get_token()
28
29
  if token is not None:
@@ -0,0 +1,7 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ # isort: skip_file
4
+
5
+ from .types import CustomersCheckEntitlementRequestView, CustomersCheckEntitlementResponse
6
+
7
+ __all__ = ["CustomersCheckEntitlementRequestView", "CustomersCheckEntitlementResponse"]