dime-python-sdk 1.3.0__py3-none-any.whl → 1.3.1__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.
dime_payments/config.py CHANGED
@@ -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
 
@@ -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')
@@ -1,6 +1,6 @@
1
1
  dime_payments/__init__.py,sha256=nJGtKtehbZMxar3wgdk8RIG_nNPSb6G9rmMyC2PnjqM,638
2
2
  dime_payments/client.py,sha256=dX_mH2q_hBZrC2s8B3Y3EYy3AWAvUYgTDNf1M0i9aFM,1328
3
- dime_payments/config.py,sha256=IEINY3s56MAaIDhVO5Cajx4D_lmUoR5SG8BLO3IOpM4,847
3
+ dime_payments/config.py,sha256=v9v2TmbjnDo-80IPhI5cMplEoIvkP5Tnyhp5JGjPXmQ,847
4
4
  dime_payments/data_objects/__init__.py,sha256=fuavK4aZ-IFM_PyMpJ8fIZlip7-V5m5LOHTCr2XnZng,1409
5
5
  dime_payments/data_objects/address.py,sha256=ocnxRM3JDLr4mDtlnVgsnUb6Hy5u6vNQlWVRFHzuMIw,950
6
6
  dime_payments/data_objects/cover_fee_quote.py,sha256=KuS1GMVe-Stixate6crTswvvhnq8e9Jfq3v4C2pRYr0,1717
@@ -37,7 +37,7 @@ dime_payments/exceptions/server_exception.py,sha256=SCUubaM1wTwFMW3E9mBSxry4A-0Q
37
37
  dime_payments/exceptions/validation_exception.py,sha256=_HGMPN-5iFq6RWJY-06Oaak565MeD-yRf6GnbXp7Sog,689
38
38
  dime_payments/http/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
39
39
  dime_payments/http/error_handler.py,sha256=dqClsyDIcCPS6CtiqtGvEwTnORj24m2muXThXfHdhX0,2873
40
- dime_payments/http/transport.py,sha256=tcFR_BLZJqti6mrWYRKKvYIEUJKMYG1mmv5FChA-b9Q,2642
40
+ dime_payments/http/transport.py,sha256=WkmSUgGbBPDHxuulejsflOE3awwzVhFahMgvXqHYznU,2642
41
41
  dime_payments/pagination/__init__.py,sha256=J2k8htn29Nu92KQh4wtEeN0StyMc8cWxVY8jQydF-dQ,62
42
42
  dime_payments/pagination/cursor_page.py,sha256=Xpbt33ceBy_HQlqe3wFbxA93bUfx3rHcqXfhVAkOQJ0,2263
43
43
  dime_payments/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -45,7 +45,7 @@ dime_payments/resources/abstract_resource.py,sha256=-XmnqJvk2tVNe44JeY_TTAzD4UiU
45
45
  dime_payments/resources/addresses.py,sha256=sg0q3YCnkdGlGM0onbBh_UsatrIu4VyzAA1BdZ1QRZ0,1713
46
46
  dime_payments/resources/customers.py,sha256=6_9gG9tc2uHN-onhzNFP0NO67NxGOYqbwZmF96vU4bo,1545
47
47
  dime_payments/resources/deposits.py,sha256=k8wE7kT_baHjXmXxzN9v6_2BqDb0GSUlINPRVtjmyUI,1213
48
- dime_payments/resources/invoices.py,sha256=e85DWM2PotddRH-TR-tiWKBtLDxJ8BaSCgsLQSN0HAM,7841
48
+ dime_payments/resources/invoices.py,sha256=NOgfRP8q0BuRhGAl1w_0Cz0qNlJfgByK7g1SHJQ3Z0w,8027
49
49
  dime_payments/resources/merchants.py,sha256=blVx7JIAps9ktdpLjjQofEnVkK_KgXOQP8beBPkHrkg,1370
50
50
  dime_payments/resources/payment_methods.py,sha256=KJWryjnZadyohG1r6pmULjwPIjPIjScSK7ekQYamvYA,1775
51
51
  dime_payments/resources/recurring_invoices.py,sha256=gJ4sNPvxv4qyNppsGZnW_orOfEVw4ROTa6yrN71Ax4g,1726
@@ -53,7 +53,7 @@ dime_payments/resources/recurring_payments.py,sha256=DPihjc-C7oLLfPrP5UveNpEKHmU
53
53
  dime_payments/resources/transactions.py,sha256=Q0VwYDicdGuM1WQXqxPX_KS313A0KZVCeuVCyKS_G7k,2742
54
54
  dime_payments/support/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
55
55
  dime_payments/support/arr.py,sha256=_mboi_q3HGn_Sx_MgU2exkbl-fnP2gdDY8yeSC8hkNc,1722
56
- dime_python_sdk-1.3.0.dist-info/METADATA,sha256=xPcFnbu29Dk0nUZZythxZw8wRMHBF3j9ZzIhLQX6YSc,14703
57
- dime_python_sdk-1.3.0.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
58
- dime_python_sdk-1.3.0.dist-info/licenses/LICENSE,sha256=-Xc5dLgfuFLVQLsSKNYmJKtNZCUU1_9ErffdGiwH-DU,1072
59
- dime_python_sdk-1.3.0.dist-info/RECORD,,
56
+ dime_python_sdk-1.3.1.dist-info/METADATA,sha256=Dd-xsvQGvO0ORUA2dK8EVYbdmrFT2qJrouHEKSqSNFs,15122
57
+ dime_python_sdk-1.3.1.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
58
+ dime_python_sdk-1.3.1.dist-info/licenses/LICENSE,sha256=-Xc5dLgfuFLVQLsSKNYmJKtNZCUU1_9ErffdGiwH-DU,1072
59
+ dime_python_sdk-1.3.1.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.31.0
2
+ Generator: hatchling 1.32.4
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any