paid-python 0.6.0__py3-none-any.whl → 1.0.0a1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. paid/__init__.py +65 -95
  2. paid/client.py +17 -494
  3. paid/contacts/client.py +415 -133
  4. paid/contacts/raw_client.py +1046 -118
  5. paid/core/client_wrapper.py +9 -10
  6. paid/customers/client.py +270 -566
  7. paid/customers/raw_client.py +731 -537
  8. paid/environment.py +1 -1
  9. paid/errors/bad_request_error.py +2 -2
  10. paid/errors/forbidden_error.py +2 -2
  11. paid/errors/internal_server_error.py +2 -2
  12. paid/errors/not_found_error.py +2 -2
  13. paid/invoices/client.py +369 -0
  14. paid/invoices/raw_client.py +692 -0
  15. paid/orders/__init__.py +0 -3
  16. paid/orders/client.py +371 -128
  17. paid/orders/raw_client.py +829 -121
  18. paid/products/__init__.py +0 -3
  19. paid/products/client.py +129 -265
  20. paid/products/raw_client.py +563 -233
  21. paid/signals/client.py +130 -0
  22. paid/signals/raw_client.py +190 -0
  23. paid/tracing/autoinstrumentation.py +12 -6
  24. paid/tracing/context_manager.py +2 -6
  25. paid/tracing/distributed_tracing.py +3 -3
  26. paid/tracing/signal.py +3 -3
  27. paid/tracing/wrappers/openai_agents/openaiAgentsHook.py +1 -1
  28. paid/types/__init__.py +62 -86
  29. paid/types/attribution.py +8 -0
  30. paid/types/{agent_attribute.py → bulk_signals_response.py} +4 -5
  31. paid/types/contact.py +12 -20
  32. paid/types/{address.py → contact_billing_address.py} +6 -7
  33. paid/types/{traces_response.py → contact_list_response.py} +5 -9
  34. paid/types/customer.py +15 -22
  35. paid/types/customer_attribution.py +8 -0
  36. paid/types/customer_billing_address.py +26 -0
  37. paid/types/{usage_summary_order.py → customer_by_external_id.py} +3 -5
  38. paid/types/{usage_summary_order_line.py → customer_by_id.py} +3 -5
  39. paid/types/customer_creation_state.py +5 -0
  40. paid/types/customer_list_response.py +22 -0
  41. paid/types/empty_response.py +17 -0
  42. paid/types/{error.py → error_response.py} +4 -7
  43. paid/types/invoice.py +57 -0
  44. paid/types/invoice_line.py +42 -0
  45. paid/types/invoice_line_payment_status.py +7 -0
  46. paid/types/invoice_lines_response.py +22 -0
  47. paid/types/invoice_list_response.py +22 -0
  48. paid/types/invoice_payment_status.py +5 -0
  49. paid/types/invoice_source.py +5 -0
  50. paid/types/invoice_status.py +7 -0
  51. paid/types/invoice_tax_status.py +7 -0
  52. paid/types/order.py +30 -29
  53. paid/types/order_creation_state.py +5 -0
  54. paid/types/order_line.py +6 -24
  55. paid/types/order_lines_response.py +22 -0
  56. paid/types/order_list_response.py +22 -0
  57. paid/types/pagination.py +24 -0
  58. paid/types/product.py +4 -29
  59. paid/types/{tier.py → product_by_external_id.py} +5 -4
  60. paid/types/{cost_amount.py → product_by_id.py} +5 -12
  61. paid/types/product_list_response.py +22 -0
  62. paid/types/signal.py +8 -34
  63. paid/types/{agent.py → update_contact_request.py} +10 -11
  64. paid/types/update_customer_request.py +38 -0
  65. paid/types/{product_update.py → update_product_request.py} +2 -12
  66. {paid_python-0.6.0.dist-info → paid_python-1.0.0a1.dist-info}/METADATA +27 -11
  67. paid_python-1.0.0a1.dist-info/RECORD +110 -0
  68. opentelemetry/instrumentation/openai/__init__.py +0 -54
  69. opentelemetry/instrumentation/openai/shared/__init__.py +0 -399
  70. opentelemetry/instrumentation/openai/shared/audio_wrappers.py +0 -247
  71. opentelemetry/instrumentation/openai/shared/chat_wrappers.py +0 -1192
  72. opentelemetry/instrumentation/openai/shared/completion_wrappers.py +0 -292
  73. opentelemetry/instrumentation/openai/shared/config.py +0 -15
  74. opentelemetry/instrumentation/openai/shared/embeddings_wrappers.py +0 -311
  75. opentelemetry/instrumentation/openai/shared/event_emitter.py +0 -108
  76. opentelemetry/instrumentation/openai/shared/event_models.py +0 -41
  77. opentelemetry/instrumentation/openai/shared/image_gen_wrappers.py +0 -68
  78. opentelemetry/instrumentation/openai/shared/span_utils.py +0 -0
  79. opentelemetry/instrumentation/openai/utils.py +0 -213
  80. opentelemetry/instrumentation/openai/v0/__init__.py +0 -176
  81. opentelemetry/instrumentation/openai/v1/__init__.py +0 -394
  82. opentelemetry/instrumentation/openai/v1/assistant_wrappers.py +0 -329
  83. opentelemetry/instrumentation/openai/v1/event_handler_wrapper.py +0 -134
  84. opentelemetry/instrumentation/openai/v1/responses_wrappers.py +0 -1113
  85. opentelemetry/instrumentation/openai/version.py +0 -1
  86. paid/agents/client.py +0 -880
  87. paid/agents/raw_client.py +0 -785
  88. paid/orders/lines/client.py +0 -144
  89. paid/orders/lines/raw_client.py +0 -129
  90. paid/plans/__init__.py +0 -4
  91. paid/plans/client.py +0 -332
  92. paid/plans/raw_client.py +0 -464
  93. paid/products/types/__init__.py +0 -7
  94. paid/products/types/product_create_type.py +0 -5
  95. paid/traces/__init__.py +0 -4
  96. paid/traces/client.py +0 -218
  97. paid/traces/raw_client.py +0 -226
  98. paid/types/agent_price_point.py +0 -27
  99. paid/types/agent_price_point_tiers.py +0 -23
  100. paid/types/agent_update.py +0 -29
  101. paid/types/api_error.py +0 -29
  102. paid/types/billing_frequency.py +0 -5
  103. paid/types/charge_type.py +0 -5
  104. paid/types/cost_trace.py +0 -55
  105. paid/types/cost_traces_response.py +0 -26
  106. paid/types/creation_source.py +0 -5
  107. paid/types/creation_state.py +0 -5
  108. paid/types/customer_update.py +0 -40
  109. paid/types/entitlement_usage.py +0 -48
  110. paid/types/order_line_attribute.py +0 -27
  111. paid/types/order_line_attribute_create_one.py +0 -5
  112. paid/types/order_line_attribute_pricing.py +0 -33
  113. paid/types/order_line_create.py +0 -72
  114. paid/types/pagination_meta.py +0 -84
  115. paid/types/plan.py +0 -81
  116. paid/types/plan_group.py +0 -60
  117. paid/types/plan_plan_products_item.py +0 -35
  118. paid/types/plan_plan_products_item_plan_product_attribute_item.py +0 -34
  119. paid/types/price_point.py +0 -25
  120. paid/types/pricing.py +0 -31
  121. paid/types/pricing_model_type.py +0 -7
  122. paid/types/product_type.py +0 -5
  123. paid/types/product_update_type.py +0 -5
  124. paid/types/salutation.py +0 -5
  125. paid/types/signal_v_2.py +0 -56
  126. paid/types/tax_exempt_status.py +0 -5
  127. paid/types/trace.py +0 -69
  128. paid/types/usage_pagination_meta.py +0 -43
  129. paid/types/usage_summaries_response.py +0 -26
  130. paid/types/usage_summary.py +0 -121
  131. paid/usage/__init__.py +0 -7
  132. paid/usage/client.py +0 -321
  133. paid/usage/raw_client.py +0 -387
  134. paid/usage/types/__init__.py +0 -7
  135. paid/usage/types/usage_check_usage_response.py +0 -53
  136. paid_python-0.6.0.dist-info/RECORD +0 -153
  137. /paid/{agents → invoices}/__init__.py +0 -0
  138. /paid/{orders/lines → signals}/__init__.py +0 -0
  139. {paid_python-0.6.0.dist-info → paid_python-1.0.0a1.dist-info}/LICENSE +0 -0
  140. {paid_python-0.6.0.dist-info → paid_python-1.0.0a1.dist-info}/WHEEL +0 -0
paid/__init__.py CHANGED
@@ -3,130 +3,100 @@
3
3
  # isort: skip_file
4
4
 
5
5
  from .types import (
6
- Address,
7
- Agent,
8
- AgentAttribute,
9
- AgentPricePoint,
10
- AgentPricePointTiers,
11
- AgentUpdate,
12
- ApiError,
13
- BillingFrequency,
14
- ChargeType,
6
+ Attribution,
7
+ BulkSignalsResponse,
15
8
  Contact,
16
- CostAmount,
17
- CostTrace,
18
- CostTracesResponse,
19
- CreationSource,
20
- CreationState,
9
+ ContactBillingAddress,
10
+ ContactListResponse,
21
11
  Customer,
22
- CustomerUpdate,
23
- EntitlementUsage,
24
- Error,
12
+ CustomerAttribution,
13
+ CustomerBillingAddress,
14
+ CustomerByExternalId,
15
+ CustomerById,
16
+ CustomerCreationState,
17
+ CustomerListResponse,
18
+ EmptyResponse,
19
+ ErrorResponse,
20
+ Invoice,
21
+ InvoiceLine,
22
+ InvoiceLinePaymentStatus,
23
+ InvoiceLinesResponse,
24
+ InvoiceListResponse,
25
+ InvoicePaymentStatus,
26
+ InvoiceSource,
27
+ InvoiceStatus,
28
+ InvoiceTaxStatus,
25
29
  Order,
30
+ OrderCreationState,
26
31
  OrderLine,
27
- OrderLineAttribute,
28
- OrderLineAttributeCreateOne,
29
- OrderLineAttributePricing,
30
- OrderLineCreate,
31
- PaginationMeta,
32
- Plan,
33
- PlanGroup,
34
- PlanPlanProductsItem,
35
- PlanPlanProductsItemPlanProductAttributeItem,
36
- PricePoint,
37
- Pricing,
38
- PricingModelType,
32
+ OrderLinesResponse,
33
+ OrderListResponse,
34
+ Pagination,
39
35
  Product,
40
- ProductType,
41
- ProductUpdate,
42
- ProductUpdateType,
43
- Salutation,
36
+ ProductByExternalId,
37
+ ProductById,
38
+ ProductListResponse,
44
39
  Signal,
45
- SignalV2,
46
- TaxExemptStatus,
47
- Tier,
48
- Trace,
49
- TracesResponse,
50
- UsagePaginationMeta,
51
- UsageSummariesResponse,
52
- UsageSummary,
53
- UsageSummaryOrder,
54
- UsageSummaryOrderLine,
40
+ UpdateContactRequest,
41
+ UpdateCustomerRequest,
42
+ UpdateProductRequest,
55
43
  )
56
44
  from .errors import BadRequestError, ForbiddenError, InternalServerError, NotFoundError
57
- from . import agents, contacts, customers, orders, plans, products, traces, usage
45
+ from . import contacts, customers, invoices, orders, products, signals
58
46
  from .client import AsyncPaid, Paid
59
47
  from .environment import PaidEnvironment
60
- from .products import ProductCreateType
61
- from .usage import UsageCheckUsageResponse
62
48
  from .version import __version__
63
49
 
64
50
  __all__ = [
65
- "Address",
66
- "Agent",
67
- "AgentAttribute",
68
- "AgentPricePoint",
69
- "AgentPricePointTiers",
70
- "AgentUpdate",
71
- "ApiError",
72
51
  "AsyncPaid",
52
+ "Attribution",
73
53
  "BadRequestError",
74
- "BillingFrequency",
75
- "ChargeType",
54
+ "BulkSignalsResponse",
76
55
  "Contact",
77
- "CostAmount",
78
- "CostTrace",
79
- "CostTracesResponse",
80
- "CreationSource",
81
- "CreationState",
56
+ "ContactBillingAddress",
57
+ "ContactListResponse",
82
58
  "Customer",
83
- "CustomerUpdate",
84
- "EntitlementUsage",
85
- "Error",
59
+ "CustomerAttribution",
60
+ "CustomerBillingAddress",
61
+ "CustomerByExternalId",
62
+ "CustomerById",
63
+ "CustomerCreationState",
64
+ "CustomerListResponse",
65
+ "EmptyResponse",
66
+ "ErrorResponse",
86
67
  "ForbiddenError",
87
68
  "InternalServerError",
69
+ "Invoice",
70
+ "InvoiceLine",
71
+ "InvoiceLinePaymentStatus",
72
+ "InvoiceLinesResponse",
73
+ "InvoiceListResponse",
74
+ "InvoicePaymentStatus",
75
+ "InvoiceSource",
76
+ "InvoiceStatus",
77
+ "InvoiceTaxStatus",
88
78
  "NotFoundError",
89
79
  "Order",
80
+ "OrderCreationState",
90
81
  "OrderLine",
91
- "OrderLineAttribute",
92
- "OrderLineAttributeCreateOne",
93
- "OrderLineAttributePricing",
94
- "OrderLineCreate",
95
- "PaginationMeta",
82
+ "OrderLinesResponse",
83
+ "OrderListResponse",
84
+ "Pagination",
96
85
  "Paid",
97
86
  "PaidEnvironment",
98
- "Plan",
99
- "PlanGroup",
100
- "PlanPlanProductsItem",
101
- "PlanPlanProductsItemPlanProductAttributeItem",
102
- "PricePoint",
103
- "Pricing",
104
- "PricingModelType",
105
87
  "Product",
106
- "ProductCreateType",
107
- "ProductType",
108
- "ProductUpdate",
109
- "ProductUpdateType",
110
- "Salutation",
88
+ "ProductByExternalId",
89
+ "ProductById",
90
+ "ProductListResponse",
111
91
  "Signal",
112
- "SignalV2",
113
- "TaxExemptStatus",
114
- "Tier",
115
- "Trace",
116
- "TracesResponse",
117
- "UsageCheckUsageResponse",
118
- "UsagePaginationMeta",
119
- "UsageSummariesResponse",
120
- "UsageSummary",
121
- "UsageSummaryOrder",
122
- "UsageSummaryOrderLine",
92
+ "UpdateContactRequest",
93
+ "UpdateCustomerRequest",
94
+ "UpdateProductRequest",
123
95
  "__version__",
124
- "agents",
125
96
  "contacts",
126
97
  "customers",
98
+ "invoices",
127
99
  "orders",
128
- "plans",
129
100
  "products",
130
- "traces",
131
- "usage",
101
+ "signals",
132
102
  ]