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.
Files changed (75) hide show
  1. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/PKG-INFO +7 -2
  2. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/README.md +5 -0
  3. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/pyproject.toml +1 -1
  4. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/config.py +1 -1
  5. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/http/transport.py +1 -1
  6. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/resources/invoices.py +6 -0
  7. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/.github/workflows/publish.yml +0 -0
  8. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/.gitignore +0 -0
  9. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/LICENSE +0 -0
  10. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/__init__.py +0 -0
  11. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/client.py +0 -0
  12. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/__init__.py +0 -0
  13. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/address.py +0 -0
  14. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/cover_fee_quote.py +0 -0
  15. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/customer.py +0 -0
  16. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/deposit.py +0 -0
  17. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/deposit_group.py +0 -0
  18. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/deposit_with_transactions.py +0 -0
  19. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/form_link.py +0 -0
  20. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/invoice.py +0 -0
  21. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/invoice_customer.py +0 -0
  22. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/invoice_event.py +0 -0
  23. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/invoice_item.py +0 -0
  24. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/invoice_link.py +0 -0
  25. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/invoice_payment.py +0 -0
  26. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/line_item.py +0 -0
  27. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/merchant.py +0 -0
  28. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/message_result.py +0 -0
  29. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/payment_method.py +0 -0
  30. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/recurring_invoice.py +0 -0
  31. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/recurring_payment.py +0 -0
  32. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/recurring_payment_method.py +0 -0
  33. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/tokenize_result.py +0 -0
  34. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/transaction.py +0 -0
  35. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/data_objects/transaction_address.py +0 -0
  36. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/exceptions/__init__.py +0 -0
  37. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/exceptions/api_exception.py +0 -0
  38. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/exceptions/authentication_exception.py +0 -0
  39. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/exceptions/connection_exception.py +0 -0
  40. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/exceptions/dime_exception.py +0 -0
  41. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/exceptions/not_found_exception.py +0 -0
  42. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/exceptions/permission_denied_exception.py +0 -0
  43. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/exceptions/rate_limit_exception.py +0 -0
  44. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/exceptions/server_exception.py +0 -0
  45. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/exceptions/validation_exception.py +0 -0
  46. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/http/__init__.py +0 -0
  47. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/http/error_handler.py +0 -0
  48. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/pagination/__init__.py +0 -0
  49. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/pagination/cursor_page.py +0 -0
  50. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/resources/__init__.py +0 -0
  51. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/resources/abstract_resource.py +0 -0
  52. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/resources/addresses.py +0 -0
  53. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/resources/customers.py +0 -0
  54. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/resources/deposits.py +0 -0
  55. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/resources/merchants.py +0 -0
  56. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/resources/payment_methods.py +0 -0
  57. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/resources/recurring_invoices.py +0 -0
  58. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/resources/recurring_payments.py +0 -0
  59. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/resources/transactions.py +0 -0
  60. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/support/__init__.py +0 -0
  61. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/src/dime_payments/support/arr.py +0 -0
  62. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/tests/__init__.py +0 -0
  63. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/tests/helpers.py +0 -0
  64. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/tests/unit/__init__.py +0 -0
  65. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/tests/unit/test_addresses.py +0 -0
  66. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/tests/unit/test_customers.py +0 -0
  67. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/tests/unit/test_deposits.py +0 -0
  68. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/tests/unit/test_error_handling.py +0 -0
  69. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/tests/unit/test_invoices.py +0 -0
  70. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/tests/unit/test_merchants.py +0 -0
  71. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/tests/unit/test_pagination.py +0 -0
  72. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/tests/unit/test_payment_methods.py +0 -0
  73. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/tests/unit/test_recurring_invoices.py +0 -0
  74. {dime_python_sdk-1.3.0 → dime_python_sdk-1.3.1}/tests/unit/test_recurring_payments.py +0 -0
  75. {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.4
1
+ Metadata-Version: 2.5
2
2
  Name: dime-python-sdk
3
- Version: 1.3.0
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')
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "dime-python-sdk"
7
- version = "1.3.0"
7
+ version = "1.3.1"
8
8
  description = "Python client for the Dime Payments API"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -8,7 +8,7 @@ if TYPE_CHECKING:
8
8
 
9
9
  class Config:
10
10
  DEFAULT_BASE_URL = 'https://app.dimepayments.com'
11
- VERSION = '1.3.0'
11
+ VERSION = '1.3.1'
12
12
 
13
13
  def __init__(
14
14
  self,
@@ -11,7 +11,7 @@ from .error_handler import ErrorHandler
11
11
  if TYPE_CHECKING:
12
12
  from ..config import Config
13
13
 
14
- SDK_VERSION = '1.3.0'
14
+ SDK_VERSION = '1.3.1'
15
15
 
16
16
 
17
17
  class Transport:
@@ -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