paid-python 0.0.3__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.
- paid_python-0.0.3/PKG-INFO +27 -0
- paid_python-0.0.3/README.md +0 -0
- paid_python-0.0.3/pyproject.toml +84 -0
- paid_python-0.0.3/src/paid/__init__.py +76 -0
- paid_python-0.0.3/src/paid/agents/__init__.py +4 -0
- paid_python-0.0.3/src/paid/agents/client.py +720 -0
- paid_python-0.0.3/src/paid/agents/raw_client.py +745 -0
- paid_python-0.0.3/src/paid/client.py +155 -0
- paid_python-0.0.3/src/paid/contacts/__init__.py +4 -0
- paid_python-0.0.3/src/paid/contacts/client.py +550 -0
- paid_python-0.0.3/src/paid/contacts/raw_client.py +532 -0
- paid_python-0.0.3/src/paid/core/__init__.py +52 -0
- paid_python-0.0.3/src/paid/core/api_error.py +23 -0
- paid_python-0.0.3/src/paid/core/client_wrapper.py +77 -0
- paid_python-0.0.3/src/paid/core/datetime_utils.py +28 -0
- paid_python-0.0.3/src/paid/core/file.py +67 -0
- paid_python-0.0.3/src/paid/core/force_multipart.py +16 -0
- paid_python-0.0.3/src/paid/core/http_client.py +543 -0
- paid_python-0.0.3/src/paid/core/http_response.py +55 -0
- paid_python-0.0.3/src/paid/core/jsonable_encoder.py +100 -0
- paid_python-0.0.3/src/paid/core/pydantic_utilities.py +255 -0
- paid_python-0.0.3/src/paid/core/query_encoder.py +58 -0
- paid_python-0.0.3/src/paid/core/remove_none_from_dict.py +11 -0
- paid_python-0.0.3/src/paid/core/request_options.py +35 -0
- paid_python-0.0.3/src/paid/core/serialization.py +276 -0
- paid_python-0.0.3/src/paid/customers/__init__.py +4 -0
- paid_python-0.0.3/src/paid/customers/client.py +810 -0
- paid_python-0.0.3/src/paid/customers/raw_client.py +843 -0
- paid_python-0.0.3/src/paid/environment.py +7 -0
- paid_python-0.0.3/src/paid/orders/__init__.py +7 -0
- paid_python-0.0.3/src/paid/orders/client.py +445 -0
- paid_python-0.0.3/src/paid/orders/lines/__init__.py +4 -0
- paid_python-0.0.3/src/paid/orders/lines/client.py +124 -0
- paid_python-0.0.3/src/paid/orders/lines/raw_client.py +129 -0
- paid_python-0.0.3/src/paid/orders/raw_client.py +449 -0
- paid_python-0.0.3/src/paid/py.typed +0 -0
- paid_python-0.0.3/src/paid/types/__init__.py +61 -0
- paid_python-0.0.3/src/paid/types/address.py +26 -0
- paid_python-0.0.3/src/paid/types/agent.py +31 -0
- paid_python-0.0.3/src/paid/types/agent_attribute.py +22 -0
- paid_python-0.0.3/src/paid/types/agent_price_point.py +27 -0
- paid_python-0.0.3/src/paid/types/agent_price_point_tiers.py +23 -0
- paid_python-0.0.3/src/paid/types/agent_update.py +29 -0
- paid_python-0.0.3/src/paid/types/api_error.py +29 -0
- paid_python-0.0.3/src/paid/types/billing_frequency.py +5 -0
- paid_python-0.0.3/src/paid/types/charge_type.py +5 -0
- paid_python-0.0.3/src/paid/types/contact.py +42 -0
- paid_python-0.0.3/src/paid/types/creation_source.py +5 -0
- paid_python-0.0.3/src/paid/types/creation_state.py +5 -0
- paid_python-0.0.3/src/paid/types/customer.py +42 -0
- paid_python-0.0.3/src/paid/types/customer_update.py +36 -0
- paid_python-0.0.3/src/paid/types/error.py +24 -0
- paid_python-0.0.3/src/paid/types/order.py +49 -0
- paid_python-0.0.3/src/paid/types/order_line.py +45 -0
- paid_python-0.0.3/src/paid/types/order_line_attribute.py +27 -0
- paid_python-0.0.3/src/paid/types/order_line_attribute_pricing.py +33 -0
- paid_python-0.0.3/src/paid/types/order_line_create.py +24 -0
- paid_python-0.0.3/src/paid/types/price_point.py +25 -0
- paid_python-0.0.3/src/paid/types/pricing.py +30 -0
- paid_python-0.0.3/src/paid/types/pricing_model_type.py +5 -0
- paid_python-0.0.3/src/paid/types/salutation.py +5 -0
- paid_python-0.0.3/src/paid/types/signal.py +22 -0
- paid_python-0.0.3/src/paid/types/tax_exempt_status.py +5 -0
- paid_python-0.0.3/src/paid/types/tier.py +23 -0
- paid_python-0.0.3/src/paid/usage/__init__.py +4 -0
- paid_python-0.0.3/src/paid/usage/client.py +113 -0
- paid_python-0.0.3/src/paid/usage/raw_client.py +121 -0
- paid_python-0.0.3/src/paid/version.py +3 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: paid-python
|
|
3
|
+
Version: 0.0.3
|
|
4
|
+
Summary:
|
|
5
|
+
Requires-Python: >=3.8,<4.0
|
|
6
|
+
Classifier: Intended Audience :: Developers
|
|
7
|
+
Classifier: Operating System :: MacOS
|
|
8
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
9
|
+
Classifier: Operating System :: OS Independent
|
|
10
|
+
Classifier: Operating System :: POSIX
|
|
11
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
12
|
+
Classifier: Programming Language :: Python
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
20
|
+
Classifier: Typing :: Typed
|
|
21
|
+
Requires-Dist: httpx (>=0.21.2)
|
|
22
|
+
Requires-Dist: pydantic (>=1.9.2)
|
|
23
|
+
Requires-Dist: pydantic-core (>=2.18.2,<3.0.0)
|
|
24
|
+
Requires-Dist: typing_extensions (>=4.0.0)
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
|
|
27
|
+
|
|
File without changes
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "paid-python"
|
|
3
|
+
|
|
4
|
+
[tool.poetry]
|
|
5
|
+
name = "paid-python"
|
|
6
|
+
version = "0.0.3"
|
|
7
|
+
description = ""
|
|
8
|
+
readme = "README.md"
|
|
9
|
+
authors = []
|
|
10
|
+
keywords = []
|
|
11
|
+
|
|
12
|
+
classifiers = [
|
|
13
|
+
"Intended Audience :: Developers",
|
|
14
|
+
"Programming Language :: Python",
|
|
15
|
+
"Programming Language :: Python :: 3",
|
|
16
|
+
"Programming Language :: Python :: 3.8",
|
|
17
|
+
"Programming Language :: Python :: 3.9",
|
|
18
|
+
"Programming Language :: Python :: 3.10",
|
|
19
|
+
"Programming Language :: Python :: 3.11",
|
|
20
|
+
"Programming Language :: Python :: 3.12",
|
|
21
|
+
"Operating System :: OS Independent",
|
|
22
|
+
"Operating System :: POSIX",
|
|
23
|
+
"Operating System :: MacOS",
|
|
24
|
+
"Operating System :: POSIX :: Linux",
|
|
25
|
+
"Operating System :: Microsoft :: Windows",
|
|
26
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
27
|
+
"Typing :: Typed"
|
|
28
|
+
]
|
|
29
|
+
packages = [
|
|
30
|
+
{ include = "paid", from = "src"}
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
[project.urls]
|
|
34
|
+
Repository = 'https://github.com/AgentPaid/paid-python'
|
|
35
|
+
|
|
36
|
+
[tool.poetry.dependencies]
|
|
37
|
+
python = "^3.8"
|
|
38
|
+
httpx = ">=0.21.2"
|
|
39
|
+
pydantic = ">= 1.9.2"
|
|
40
|
+
pydantic-core = "^2.18.2"
|
|
41
|
+
typing_extensions = ">= 4.0.0"
|
|
42
|
+
|
|
43
|
+
[tool.poetry.group.dev.dependencies]
|
|
44
|
+
mypy = "==1.13.0"
|
|
45
|
+
pytest = "^7.4.0"
|
|
46
|
+
pytest-asyncio = "^0.23.5"
|
|
47
|
+
python-dateutil = "^2.9.0"
|
|
48
|
+
types-python-dateutil = "^2.9.0.20240316"
|
|
49
|
+
ruff = "==0.11.5"
|
|
50
|
+
|
|
51
|
+
[tool.pytest.ini_options]
|
|
52
|
+
testpaths = [ "tests" ]
|
|
53
|
+
asyncio_mode = "auto"
|
|
54
|
+
|
|
55
|
+
[tool.mypy]
|
|
56
|
+
plugins = ["pydantic.mypy"]
|
|
57
|
+
|
|
58
|
+
[tool.ruff]
|
|
59
|
+
line-length = 120
|
|
60
|
+
|
|
61
|
+
[tool.ruff.lint]
|
|
62
|
+
select = [
|
|
63
|
+
"E", # pycodestyle errors
|
|
64
|
+
"F", # pyflakes
|
|
65
|
+
"I", # isort
|
|
66
|
+
]
|
|
67
|
+
ignore = [
|
|
68
|
+
"E402", # Module level import not at top of file
|
|
69
|
+
"E501", # Line too long
|
|
70
|
+
"E711", # Comparison to `None` should be `cond is not None`
|
|
71
|
+
"E712", # Avoid equality comparisons to `True`; use `if ...:` checks
|
|
72
|
+
"E721", # Use `is` and `is not` for type comparisons, or `isinstance()` for insinstance checks
|
|
73
|
+
"E722", # Do not use bare `except`
|
|
74
|
+
"E731", # Do not assign a `lambda` expression, use a `def`
|
|
75
|
+
"F821", # Undefined name
|
|
76
|
+
"F841" # Local variable ... is assigned to but never used
|
|
77
|
+
]
|
|
78
|
+
|
|
79
|
+
[tool.ruff.lint.isort]
|
|
80
|
+
section-order = ["future", "standard-library", "third-party", "first-party"]
|
|
81
|
+
|
|
82
|
+
[build-system]
|
|
83
|
+
requires = ["poetry-core"]
|
|
84
|
+
build-backend = "poetry.core.masonry.api"
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
# isort: skip_file
|
|
4
|
+
|
|
5
|
+
from .types import (
|
|
6
|
+
Address,
|
|
7
|
+
Agent,
|
|
8
|
+
AgentAttribute,
|
|
9
|
+
AgentPricePoint,
|
|
10
|
+
AgentPricePointTiers,
|
|
11
|
+
AgentUpdate,
|
|
12
|
+
ApiError,
|
|
13
|
+
BillingFrequency,
|
|
14
|
+
ChargeType,
|
|
15
|
+
Contact,
|
|
16
|
+
CreationSource,
|
|
17
|
+
CreationState,
|
|
18
|
+
Customer,
|
|
19
|
+
CustomerUpdate,
|
|
20
|
+
Error,
|
|
21
|
+
Order,
|
|
22
|
+
OrderLine,
|
|
23
|
+
OrderLineAttribute,
|
|
24
|
+
OrderLineAttributePricing,
|
|
25
|
+
OrderLineCreate,
|
|
26
|
+
PricePoint,
|
|
27
|
+
Pricing,
|
|
28
|
+
PricingModelType,
|
|
29
|
+
Salutation,
|
|
30
|
+
Signal,
|
|
31
|
+
TaxExemptStatus,
|
|
32
|
+
Tier,
|
|
33
|
+
)
|
|
34
|
+
from . import agents, contacts, customers, orders, usage
|
|
35
|
+
from .client import AsyncPaid, Paid
|
|
36
|
+
from .environment import PaidEnvironment
|
|
37
|
+
from .version import __version__
|
|
38
|
+
|
|
39
|
+
__all__ = [
|
|
40
|
+
"Address",
|
|
41
|
+
"Agent",
|
|
42
|
+
"AgentAttribute",
|
|
43
|
+
"AgentPricePoint",
|
|
44
|
+
"AgentPricePointTiers",
|
|
45
|
+
"AgentUpdate",
|
|
46
|
+
"ApiError",
|
|
47
|
+
"AsyncPaid",
|
|
48
|
+
"BillingFrequency",
|
|
49
|
+
"ChargeType",
|
|
50
|
+
"Contact",
|
|
51
|
+
"CreationSource",
|
|
52
|
+
"CreationState",
|
|
53
|
+
"Customer",
|
|
54
|
+
"CustomerUpdate",
|
|
55
|
+
"Error",
|
|
56
|
+
"Order",
|
|
57
|
+
"OrderLine",
|
|
58
|
+
"OrderLineAttribute",
|
|
59
|
+
"OrderLineAttributePricing",
|
|
60
|
+
"OrderLineCreate",
|
|
61
|
+
"Paid",
|
|
62
|
+
"PaidEnvironment",
|
|
63
|
+
"PricePoint",
|
|
64
|
+
"Pricing",
|
|
65
|
+
"PricingModelType",
|
|
66
|
+
"Salutation",
|
|
67
|
+
"Signal",
|
|
68
|
+
"TaxExemptStatus",
|
|
69
|
+
"Tier",
|
|
70
|
+
"__version__",
|
|
71
|
+
"agents",
|
|
72
|
+
"contacts",
|
|
73
|
+
"customers",
|
|
74
|
+
"orders",
|
|
75
|
+
"usage",
|
|
76
|
+
]
|