Skip to content

Commit c786396

Browse files
committed
Fix: removed unwanted customers endpoint and component
1 parent 6095db3 commit c786396

10 files changed

Lines changed: 2 additions & 271 deletions

File tree

README.md

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ZendFi Python SDK
22

3-
A lightweight, production-ready Python SDK for the ZendFi API. Supports payments, customers, invoices, webhooks, subscriptions, payment links, and installment plans.
3+
A lightweight, production-ready Python SDK for the ZendFi API. Supports payments, invoices, webhooks, subscriptions, payment links, and installment plans.
44

55
**Package:** [`zendfi-sdk`](https://pypi.org/project/zendfi-sdk) on PyPI
66
**License:** MIT
@@ -96,33 +96,6 @@ payment = client.payments.retrieve(payment_id="pay_xxx")
9696
payments = client.payments.list(limit=20, starting_after="pay_xxx")
9797
```
9898

99-
### Customers
100-
101-
```python
102-
# Create a customer
103-
customer = client.customers.create(
104-
email="customer@example.com",
105-
name="John Doe",
106-
metadata={"user_id": "usr_123"}
107-
)
108-
109-
# Retrieve a customer
110-
customer = client.customers.retrieve(customer_id="cust_xxx")
111-
112-
# Update a customer
113-
customer = client.customers.update(
114-
customer_id="cust_xxx",
115-
email="newemail@example.com",
116-
name="Jane Doe"
117-
)
118-
119-
# Delete a customer
120-
client.customers.delete(customer_id="cust_xxx")
121-
122-
# List customers
123-
customers = client.customers.list(limit=20)
124-
```
125-
12699
### Invoices
127100

128101
```python
-1.25 KB
Binary file not shown.

dist/zendfi_sdk-0.1.0.tar.gz

-1.66 KB
Binary file not shown.

tests/test_customers.py

Lines changed: 0 additions & 15 deletions
This file was deleted.

tests/test_customers_unit.py

Lines changed: 0 additions & 35 deletions
This file was deleted.
-92 Bytes
Binary file not shown.

zendfi/client.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,13 @@ def __init__(self, api_key: str, base_url: Optional[str] = None, env: Optional[s
2424

2525
# components
2626
from .payments import Payments
27-
from .customers import Customers
2827
from .invoices import Invoices
2928
from .webhooks import Webhooks
3029
from .subscriptions import Subscriptions
3130
from .payment_links import PaymentLinks
3231
from .installment_plans import InstallmentPlans
3332

3433
self.payments = Payments(self)
35-
self.customers = Customers(self)
3634
self.invoices = Invoices(self)
3735
self.webhooks = Webhooks(self)
3836
self.subscriptions = Subscriptions(self)

zendfi/customers.py

Lines changed: 0 additions & 98 deletions
This file was deleted.

zendfi_sdk.egg-info/PKG-INFO

Lines changed: 1 addition & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Dynamic: license-file
1717

1818
# ZendFi Python SDK
1919

20-
A lightweight, production-ready Python SDK for the ZendFi API. Supports payments, customers, invoices, webhooks, subscriptions, payment links, and installment plans.
20+
A lightweight, production-ready Python SDK for the ZendFi API. Supports payments, invoices, webhooks, subscriptions, payment links, and installment plans.
2121

2222
**Package:** [`zendfi-sdk`](https://pypi.org/project/zendfi-sdk) on PyPI
2323
**License:** MIT
@@ -113,33 +113,6 @@ payment = client.payments.retrieve(payment_id="pay_xxx")
113113
payments = client.payments.list(limit=20, starting_after="pay_xxx")
114114
```
115115

116-
### Customers
117-
118-
```python
119-
# Create a customer
120-
customer = client.customers.create(
121-
email="customer@example.com",
122-
name="John Doe",
123-
metadata={"user_id": "usr_123"}
124-
)
125-
126-
# Retrieve a customer
127-
customer = client.customers.retrieve(customer_id="cust_xxx")
128-
129-
# Update a customer
130-
customer = client.customers.update(
131-
customer_id="cust_xxx",
132-
email="newemail@example.com",
133-
name="Jane Doe"
134-
)
135-
136-
# Delete a customer
137-
client.customers.delete(customer_id="cust_xxx")
138-
139-
# List customers
140-
customers = client.customers.list(limit=20)
141-
```
142-
143116
### Invoices
144117

145118
```python
@@ -308,68 +281,6 @@ except Exception as e:
308281

309282
---
310283

311-
## Publishing to PyPI
312-
313-
### Prerequisites
314-
315-
Generate a PyPI API token: https://pypi.org/manage/account/tokens/
316-
317-
### Manual Publish
318-
319-
```bash
320-
pip install twine
321-
python -m build
322-
python -m twine upload dist/*
323-
```
324-
325-
### Automated via GitHub Actions
326-
327-
1. Add `PYPI_API_TOKEN` secret to your GitHub repository settings
328-
2. Tag and push a release:
329-
```bash
330-
git tag v0.1.0
331-
git push origin v0.1.0
332-
```
333-
3. The `.github/workflows/publish.yml` workflow will build and publish automatically
334-
335-
---
336-
337-
## Development
338-
339-
### Setup
340-
341-
```bash
342-
git clone https://github.com/zendfi/zendfi-python-toolkit.git
343-
cd zendfi-python-toolkit
344-
python -m venv .venv
345-
source .venv/bin/activate # On Windows: .venv\Scripts\activate
346-
pip install -r requirements-dev.txt
347-
```
348-
349-
### Build
350-
351-
```bash
352-
python -m build
353-
```
354-
355-
### Lint & Type Check
356-
357-
```bash
358-
ruff check .
359-
mypy zendfi/
360-
```
361-
362-
---
363-
364-
## Security
365-
366-
- **Never commit API keys or tokens** to the repository
367-
- Use environment variables for secrets
368-
- For CI/CD, use GitHub Secrets or your platform's secret management
369-
- Webhook signatures are verified using HMAC-SHA256
370-
371-
---
372-
373284
## Support
374285

375286
For issues, feature requests, or questions, open an issue on GitHub:

zendfi_sdk.egg-info/SOURCES.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ MANIFEST.in
44
README.md
55
pyproject.toml
66
tests/test_client_env.py
7-
tests/test_customers.py
8-
tests/test_customers_unit.py
97
tests/test_installment_plans_unit.py
108
tests/test_invoices.py
119
tests/test_invoices_unit.py
@@ -17,7 +15,6 @@ tests/test_webhooks.py
1715
zendfi/__init__.py
1816
zendfi/_init_.py
1917
zendfi/client.py
20-
zendfi/customers.py
2118
zendfi/errors.py
2219
zendfi/installment_plans.py
2320
zendfi/invoices.py

0 commit comments

Comments
 (0)