dime-python-sdk 1.3.0__tar.gz → 1.3.1__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.
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/PKG-INFO +7 -2
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/README.md +5 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/pyproject.toml +1 -1
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/config.py +1 -1
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/http/transport.py +1 -1
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/resources/invoices.py +6 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/.github/workflows/publish.yml +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/.gitignore +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/LICENSE +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/__init__.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/client.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/__init__.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/address.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/cover_fee_quote.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/customer.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/deposit.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/deposit_group.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/deposit_with_transactions.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/form_link.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/invoice.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/invoice_customer.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/invoice_event.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/invoice_item.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/invoice_link.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/invoice_payment.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/line_item.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/merchant.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/message_result.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/payment_method.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/recurring_invoice.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/recurring_payment.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/recurring_payment_method.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/tokenize_result.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/transaction.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/transaction_address.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/exceptions/__init__.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/exceptions/api_exception.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/exceptions/authentication_exception.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/exceptions/connection_exception.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/exceptions/dime_exception.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/exceptions/not_found_exception.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/exceptions/permission_denied_exception.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/exceptions/rate_limit_exception.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/exceptions/server_exception.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/exceptions/validation_exception.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/http/__init__.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/http/error_handler.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/pagination/__init__.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/pagination/cursor_page.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/resources/__init__.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/resources/abstract_resource.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/resources/addresses.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/resources/customers.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/resources/deposits.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/resources/merchants.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/resources/payment_methods.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/resources/recurring_invoices.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/resources/recurring_payments.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/resources/transactions.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/support/__init__.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/support/arr.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/tests/__init__.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/tests/helpers.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/tests/unit/__init__.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/tests/unit/test_addresses.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/tests/unit/test_customers.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/tests/unit/test_deposits.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/tests/unit/test_error_handling.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/tests/unit/test_invoices.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/tests/unit/test_merchants.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/tests/unit/test_pagination.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/tests/unit/test_payment_methods.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/tests/unit/test_recurring_invoices.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/tests/unit/test_recurring_payments.py +0 -0
- {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/tests/unit/test_transactions.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: dime-python-sdk
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.1
|
|
4
4
|
Summary: Python client for the Dime Payments API
|
|
5
5
|
Author: Dime Technology
|
|
6
6
|
License: MIT License
|
|
@@ -218,6 +218,11 @@ item (a fund or designation). Draft invoices can be edited; once sent they are l
|
|
|
218
218
|
Identify the customer with `customer_uuid` — the same uuid every other resource uses, and the only
|
|
219
219
|
identifier the customer endpoints return. `customer_id` is still accepted for older integrations.
|
|
220
220
|
|
|
221
|
+
**Statuses.** `invoice.status` is one of `draft`, `sent`, `viewed`, `partially_paid`, `paid`, `void` or
|
|
222
|
+
`refunded`. `paid` is not always final: if the customer's bank returns an ACH payment, the invoice is
|
|
223
|
+
reopened (back to `partially_paid`, `viewed` or `sent`, with `amount_paid` and `balance` updated) and an
|
|
224
|
+
`invoice_payment_returned` webhook fires. Re-read the invoice rather than caching a `paid` status forever.
|
|
225
|
+
|
|
221
226
|
```python
|
|
222
227
|
# Look up (or create) the merchant items a line can reference
|
|
223
228
|
items = dime.invoices.list_items('000010')
|
|
@@ -174,6 +174,11 @@ item (a fund or designation). Draft invoices can be edited; once sent they are l
|
|
|
174
174
|
Identify the customer with `customer_uuid` — the same uuid every other resource uses, and the only
|
|
175
175
|
identifier the customer endpoints return. `customer_id` is still accepted for older integrations.
|
|
176
176
|
|
|
177
|
+
**Statuses.** `invoice.status` is one of `draft`, `sent`, `viewed`, `partially_paid`, `paid`, `void` or
|
|
178
|
+
`refunded`. `paid` is not always final: if the customer's bank returns an ACH payment, the invoice is
|
|
179
|
+
reopened (back to `partially_paid`, `viewed` or `sent`, with `amount_paid` and `balance` updated) and an
|
|
180
|
+
`invoice_payment_returned` webhook fires. Re-read the invoice rather than caching a `paid` status forever.
|
|
181
|
+
|
|
177
182
|
```python
|
|
178
183
|
# Look up (or create) the merchant items a line can reference
|
|
179
184
|
items = dime.invoices.list_items('000010')
|
|
@@ -25,6 +25,12 @@ class Invoices(AbstractResource):
|
|
|
25
25
|
"""
|
|
26
26
|
|
|
27
27
|
def list(self, sid: str, filters: dict[str, Any] | None = None) -> CursorPage[Invoice]:
|
|
28
|
+
"""
|
|
29
|
+
List invoices for a merchant.
|
|
30
|
+
|
|
31
|
+
``filters['status']`` is one of draft, sent, viewed, partially_paid, paid, void,
|
|
32
|
+
refunded, overdue or all.
|
|
33
|
+
"""
|
|
28
34
|
body = self._envelope({'sid': sid}, filters or {})
|
|
29
35
|
return self._paginate('GET', 'invoices', body, Invoice.from_dict)
|
|
30
36
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/cover_fee_quote.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/deposit_group.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/invoice_customer.py
RENAMED
|
File without changes
|
{dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/invoice_event.py
RENAMED
|
File without changes
|
{dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/invoice_item.py
RENAMED
|
File without changes
|
{dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/invoice_link.py
RENAMED
|
File without changes
|
{dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/invoice_payment.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/message_result.py
RENAMED
|
File without changes
|
{dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/payment_method.py
RENAMED
|
File without changes
|
{dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/recurring_invoice.py
RENAMED
|
File without changes
|
{dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/recurring_payment.py
RENAMED
|
File without changes
|
|
File without changes
|
{dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/tokenize_result.py
RENAMED
|
File without changes
|
{dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/transaction.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/exceptions/api_exception.py
RENAMED
|
File without changes
|
|
File without changes
|
{dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/exceptions/connection_exception.py
RENAMED
|
File without changes
|
{dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/exceptions/dime_exception.py
RENAMED
|
File without changes
|
{dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/exceptions/not_found_exception.py
RENAMED
|
File without changes
|
|
File without changes
|
{dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/exceptions/rate_limit_exception.py
RENAMED
|
File without changes
|
{dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/exceptions/server_exception.py
RENAMED
|
File without changes
|
{dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/exceptions/validation_exception.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/resources/abstract_resource.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/resources/payment_methods.py
RENAMED
|
File without changes
|
{dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/resources/recurring_invoices.py
RENAMED
|
File without changes
|
{dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/resources/recurring_payments.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|