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.
- paid/__init__.py +65 -95
- paid/client.py +17 -494
- paid/contacts/client.py +415 -133
- paid/contacts/raw_client.py +1046 -118
- paid/core/client_wrapper.py +9 -10
- paid/customers/client.py +270 -566
- paid/customers/raw_client.py +731 -537
- paid/environment.py +1 -1
- paid/errors/bad_request_error.py +2 -2
- paid/errors/forbidden_error.py +2 -2
- paid/errors/internal_server_error.py +2 -2
- paid/errors/not_found_error.py +2 -2
- paid/invoices/client.py +369 -0
- paid/invoices/raw_client.py +692 -0
- paid/orders/__init__.py +0 -3
- paid/orders/client.py +371 -128
- paid/orders/raw_client.py +829 -121
- paid/products/__init__.py +0 -3
- paid/products/client.py +129 -265
- paid/products/raw_client.py +563 -233
- paid/signals/client.py +130 -0
- paid/signals/raw_client.py +190 -0
- paid/tracing/autoinstrumentation.py +12 -6
- paid/tracing/context_manager.py +2 -6
- paid/tracing/distributed_tracing.py +3 -3
- paid/tracing/signal.py +3 -3
- paid/tracing/wrappers/openai_agents/openaiAgentsHook.py +1 -1
- paid/types/__init__.py +62 -86
- paid/types/attribution.py +8 -0
- paid/types/{agent_attribute.py → bulk_signals_response.py} +4 -5
- paid/types/contact.py +12 -20
- paid/types/{address.py → contact_billing_address.py} +6 -7
- paid/types/{traces_response.py → contact_list_response.py} +5 -9
- paid/types/customer.py +15 -22
- paid/types/customer_attribution.py +8 -0
- paid/types/customer_billing_address.py +26 -0
- paid/types/{usage_summary_order.py → customer_by_external_id.py} +3 -5
- paid/types/{usage_summary_order_line.py → customer_by_id.py} +3 -5
- paid/types/customer_creation_state.py +5 -0
- paid/types/customer_list_response.py +22 -0
- paid/types/empty_response.py +17 -0
- paid/types/{error.py → error_response.py} +4 -7
- paid/types/invoice.py +57 -0
- paid/types/invoice_line.py +42 -0
- paid/types/invoice_line_payment_status.py +7 -0
- paid/types/invoice_lines_response.py +22 -0
- paid/types/invoice_list_response.py +22 -0
- paid/types/invoice_payment_status.py +5 -0
- paid/types/invoice_source.py +5 -0
- paid/types/invoice_status.py +7 -0
- paid/types/invoice_tax_status.py +7 -0
- paid/types/order.py +30 -29
- paid/types/order_creation_state.py +5 -0
- paid/types/order_line.py +6 -24
- paid/types/order_lines_response.py +22 -0
- paid/types/order_list_response.py +22 -0
- paid/types/pagination.py +24 -0
- paid/types/product.py +4 -29
- paid/types/{tier.py → product_by_external_id.py} +5 -4
- paid/types/{cost_amount.py → product_by_id.py} +5 -12
- paid/types/product_list_response.py +22 -0
- paid/types/signal.py +8 -34
- paid/types/{agent.py → update_contact_request.py} +10 -11
- paid/types/update_customer_request.py +38 -0
- paid/types/{product_update.py → update_product_request.py} +2 -12
- {paid_python-0.6.0.dist-info → paid_python-1.0.0a1.dist-info}/METADATA +27 -11
- paid_python-1.0.0a1.dist-info/RECORD +110 -0
- opentelemetry/instrumentation/openai/__init__.py +0 -54
- opentelemetry/instrumentation/openai/shared/__init__.py +0 -399
- opentelemetry/instrumentation/openai/shared/audio_wrappers.py +0 -247
- opentelemetry/instrumentation/openai/shared/chat_wrappers.py +0 -1192
- opentelemetry/instrumentation/openai/shared/completion_wrappers.py +0 -292
- opentelemetry/instrumentation/openai/shared/config.py +0 -15
- opentelemetry/instrumentation/openai/shared/embeddings_wrappers.py +0 -311
- opentelemetry/instrumentation/openai/shared/event_emitter.py +0 -108
- opentelemetry/instrumentation/openai/shared/event_models.py +0 -41
- opentelemetry/instrumentation/openai/shared/image_gen_wrappers.py +0 -68
- opentelemetry/instrumentation/openai/shared/span_utils.py +0 -0
- opentelemetry/instrumentation/openai/utils.py +0 -213
- opentelemetry/instrumentation/openai/v0/__init__.py +0 -176
- opentelemetry/instrumentation/openai/v1/__init__.py +0 -394
- opentelemetry/instrumentation/openai/v1/assistant_wrappers.py +0 -329
- opentelemetry/instrumentation/openai/v1/event_handler_wrapper.py +0 -134
- opentelemetry/instrumentation/openai/v1/responses_wrappers.py +0 -1113
- opentelemetry/instrumentation/openai/version.py +0 -1
- paid/agents/client.py +0 -880
- paid/agents/raw_client.py +0 -785
- paid/orders/lines/client.py +0 -144
- paid/orders/lines/raw_client.py +0 -129
- paid/plans/__init__.py +0 -4
- paid/plans/client.py +0 -332
- paid/plans/raw_client.py +0 -464
- paid/products/types/__init__.py +0 -7
- paid/products/types/product_create_type.py +0 -5
- paid/traces/__init__.py +0 -4
- paid/traces/client.py +0 -218
- paid/traces/raw_client.py +0 -226
- paid/types/agent_price_point.py +0 -27
- paid/types/agent_price_point_tiers.py +0 -23
- paid/types/agent_update.py +0 -29
- paid/types/api_error.py +0 -29
- paid/types/billing_frequency.py +0 -5
- paid/types/charge_type.py +0 -5
- paid/types/cost_trace.py +0 -55
- paid/types/cost_traces_response.py +0 -26
- paid/types/creation_source.py +0 -5
- paid/types/creation_state.py +0 -5
- paid/types/customer_update.py +0 -40
- paid/types/entitlement_usage.py +0 -48
- paid/types/order_line_attribute.py +0 -27
- paid/types/order_line_attribute_create_one.py +0 -5
- paid/types/order_line_attribute_pricing.py +0 -33
- paid/types/order_line_create.py +0 -72
- paid/types/pagination_meta.py +0 -84
- paid/types/plan.py +0 -81
- paid/types/plan_group.py +0 -60
- paid/types/plan_plan_products_item.py +0 -35
- paid/types/plan_plan_products_item_plan_product_attribute_item.py +0 -34
- paid/types/price_point.py +0 -25
- paid/types/pricing.py +0 -31
- paid/types/pricing_model_type.py +0 -7
- paid/types/product_type.py +0 -5
- paid/types/product_update_type.py +0 -5
- paid/types/salutation.py +0 -5
- paid/types/signal_v_2.py +0 -56
- paid/types/tax_exempt_status.py +0 -5
- paid/types/trace.py +0 -69
- paid/types/usage_pagination_meta.py +0 -43
- paid/types/usage_summaries_response.py +0 -26
- paid/types/usage_summary.py +0 -121
- paid/usage/__init__.py +0 -7
- paid/usage/client.py +0 -321
- paid/usage/raw_client.py +0 -387
- paid/usage/types/__init__.py +0 -7
- paid/usage/types/usage_check_usage_response.py +0 -53
- paid_python-0.6.0.dist-info/RECORD +0 -153
- /paid/{agents → invoices}/__init__.py +0 -0
- /paid/{orders/lines → signals}/__init__.py +0 -0
- {paid_python-0.6.0.dist-info → paid_python-1.0.0a1.dist-info}/LICENSE +0 -0
- {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
|
-
|
|
7
|
-
|
|
8
|
-
AgentAttribute,
|
|
9
|
-
AgentPricePoint,
|
|
10
|
-
AgentPricePointTiers,
|
|
11
|
-
AgentUpdate,
|
|
12
|
-
ApiError,
|
|
13
|
-
BillingFrequency,
|
|
14
|
-
ChargeType,
|
|
6
|
+
Attribution,
|
|
7
|
+
BulkSignalsResponse,
|
|
15
8
|
Contact,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
CostTracesResponse,
|
|
19
|
-
CreationSource,
|
|
20
|
-
CreationState,
|
|
9
|
+
ContactBillingAddress,
|
|
10
|
+
ContactListResponse,
|
|
21
11
|
Customer,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
Salutation,
|
|
36
|
+
ProductByExternalId,
|
|
37
|
+
ProductById,
|
|
38
|
+
ProductListResponse,
|
|
44
39
|
Signal,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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
|
|
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
|
-
"
|
|
75
|
-
"ChargeType",
|
|
54
|
+
"BulkSignalsResponse",
|
|
76
55
|
"Contact",
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"CostTracesResponse",
|
|
80
|
-
"CreationSource",
|
|
81
|
-
"CreationState",
|
|
56
|
+
"ContactBillingAddress",
|
|
57
|
+
"ContactListResponse",
|
|
82
58
|
"Customer",
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
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
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
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
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"ProductUpdateType",
|
|
110
|
-
"Salutation",
|
|
88
|
+
"ProductByExternalId",
|
|
89
|
+
"ProductById",
|
|
90
|
+
"ProductListResponse",
|
|
111
91
|
"Signal",
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
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
|
-
"
|
|
131
|
-
"usage",
|
|
101
|
+
"signals",
|
|
132
102
|
]
|