dime-python-sdk 1.0.0__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/__init__.py +29 -0
- dime_payments/client.py +30 -0
- dime_payments/config.py +32 -0
- dime_payments/data_objects/__init__.py +31 -0
- dime_payments/data_objects/address.py +30 -0
- dime_payments/data_objects/customer.py +37 -0
- dime_payments/data_objects/deposit.py +31 -0
- dime_payments/data_objects/deposit_group.py +25 -0
- dime_payments/data_objects/deposit_with_transactions.py +37 -0
- dime_payments/data_objects/form_link.py +13 -0
- dime_payments/data_objects/merchant.py +55 -0
- dime_payments/data_objects/message_result.py +13 -0
- dime_payments/data_objects/payment_method.py +63 -0
- dime_payments/data_objects/recurring_payment.py +53 -0
- dime_payments/data_objects/recurring_payment_method.py +17 -0
- dime_payments/data_objects/tokenize_result.py +13 -0
- dime_payments/data_objects/transaction.py +57 -0
- dime_payments/data_objects/transaction_address.py +27 -0
- dime_payments/exceptions/__init__.py +21 -0
- dime_payments/exceptions/api_exception.py +5 -0
- dime_payments/exceptions/authentication_exception.py +5 -0
- dime_payments/exceptions/connection_exception.py +5 -0
- dime_payments/exceptions/dime_exception.py +19 -0
- dime_payments/exceptions/not_found_exception.py +5 -0
- dime_payments/exceptions/permission_denied_exception.py +5 -0
- dime_payments/exceptions/rate_limit_exception.py +18 -0
- dime_payments/exceptions/server_exception.py +5 -0
- dime_payments/exceptions/validation_exception.py +24 -0
- dime_payments/http/__init__.py +0 -0
- dime_payments/http/error_handler.py +76 -0
- dime_payments/http/transport.py +80 -0
- dime_payments/pagination/__init__.py +3 -0
- dime_payments/pagination/cursor_page.py +72 -0
- dime_payments/resources/__init__.py +0 -0
- dime_payments/resources/abstract_resource.py +49 -0
- dime_payments/resources/addresses.py +37 -0
- dime_payments/resources/customers.py +32 -0
- dime_payments/resources/deposits.py +31 -0
- dime_payments/resources/merchants.py +31 -0
- dime_payments/resources/payment_methods.py +37 -0
- dime_payments/resources/recurring_payments.py +53 -0
- dime_payments/resources/transactions.py +53 -0
- dime_payments/support/__init__.py +0 -0
- dime_payments/support/arr.py +60 -0
- dime_python_sdk-1.0.0.dist-info/METADATA +288 -0
- dime_python_sdk-1.0.0.dist-info/RECORD +48 -0
- dime_python_sdk-1.0.0.dist-info/WHEEL +4 -0
- dime_python_sdk-1.0.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
from typing import Any
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def arr_string(data: dict[str, Any], key: str, default: str | None = None) -> str | None:
|
|
5
|
+
value = data.get(key)
|
|
6
|
+
if value is None or isinstance(value, (dict, list)):
|
|
7
|
+
return default
|
|
8
|
+
if isinstance(value, bool):
|
|
9
|
+
return '1' if value else '0'
|
|
10
|
+
return str(value)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def arr_string_from(data: dict[str, Any], keys: list[str], default: str | None = None) -> str | None:
|
|
14
|
+
for key in keys:
|
|
15
|
+
if key in data and data[key] is not None:
|
|
16
|
+
return arr_string(data, key, default)
|
|
17
|
+
return default
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def arr_int(data: dict[str, Any], key: str, default: int | None = None) -> int | None:
|
|
21
|
+
value = data.get(key)
|
|
22
|
+
if value is None:
|
|
23
|
+
return default
|
|
24
|
+
try:
|
|
25
|
+
return int(value)
|
|
26
|
+
except (TypeError, ValueError):
|
|
27
|
+
return default
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def arr_float(data: dict[str, Any], key: str, default: float | None = None) -> float | None:
|
|
31
|
+
value = data.get(key)
|
|
32
|
+
if value is None:
|
|
33
|
+
return default
|
|
34
|
+
try:
|
|
35
|
+
return float(value)
|
|
36
|
+
except (TypeError, ValueError):
|
|
37
|
+
return default
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def arr_bool(data: dict[str, Any], key: str, default: bool = False) -> bool:
|
|
41
|
+
value = data.get(key)
|
|
42
|
+
return default if value is None else bool(value)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def arr_object(data: dict[str, Any], key: str) -> dict[str, Any]:
|
|
46
|
+
value = data.get(key)
|
|
47
|
+
return value if isinstance(value, dict) else {}
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def arr_object_from(data: dict[str, Any], keys: list[str]) -> dict[str, Any]:
|
|
51
|
+
for key in keys:
|
|
52
|
+
value = data.get(key)
|
|
53
|
+
if isinstance(value, dict):
|
|
54
|
+
return value
|
|
55
|
+
return {}
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
def arr_array(data: dict[str, Any], key: str) -> list[Any]:
|
|
59
|
+
value = data.get(key)
|
|
60
|
+
return value if isinstance(value, list) else []
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: dime-python-sdk
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Python client for the Dime Payments API
|
|
5
|
+
Author: Dime Technology
|
|
6
|
+
License: MIT License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2026 Dime Technology
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
+
SOFTWARE.
|
|
27
|
+
License-File: LICENSE
|
|
28
|
+
Keywords: api,dime,payments,sdk
|
|
29
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
30
|
+
Classifier: Intended Audience :: Developers
|
|
31
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
32
|
+
Classifier: Operating System :: OS Independent
|
|
33
|
+
Classifier: Programming Language :: Python :: 3
|
|
34
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
35
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
36
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
37
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
38
|
+
Requires-Python: >=3.10
|
|
39
|
+
Requires-Dist: requests>=2.28
|
|
40
|
+
Provides-Extra: dev
|
|
41
|
+
Requires-Dist: pytest-cov>=5.0; extra == 'dev'
|
|
42
|
+
Requires-Dist: pytest>=8.0; extra == 'dev'
|
|
43
|
+
Description-Content-Type: text/markdown
|
|
44
|
+
|
|
45
|
+
# Dime Payments Python SDK
|
|
46
|
+
|
|
47
|
+
A typed Python client for the [Dime Payments](https://dimepayments.com) API.
|
|
48
|
+
Works with Python 3.10+ on any platform.
|
|
49
|
+
|
|
50
|
+
```python
|
|
51
|
+
from dime_payments import Client
|
|
52
|
+
|
|
53
|
+
dime = Client('your-api-token')
|
|
54
|
+
|
|
55
|
+
txn = dime.transactions.charge_card('000010', {
|
|
56
|
+
'amount': '49.99',
|
|
57
|
+
'token': 'tok_abc123',
|
|
58
|
+
})
|
|
59
|
+
|
|
60
|
+
print(txn.transaction_status) # "Success"
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Requirements
|
|
64
|
+
|
|
65
|
+
- Python 3.10+
|
|
66
|
+
- A Dime API token (a Laravel Sanctum personal access token). Tokens are minted inside the
|
|
67
|
+
Dime application, not via this SDK, and carry abilities (e.g. `transaction:charge-card-token`,
|
|
68
|
+
`customer:read`) that gate which calls succeed.
|
|
69
|
+
|
|
70
|
+
## Installation
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
pip install dime-python-sdk
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Configuration
|
|
77
|
+
|
|
78
|
+
The simplest setup needs only a token:
|
|
79
|
+
|
|
80
|
+
```python
|
|
81
|
+
dime = Client('your-api-token')
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Point it at another environment, or use `Config` for full control:
|
|
85
|
+
|
|
86
|
+
```python
|
|
87
|
+
from dime_payments import Client, Config
|
|
88
|
+
|
|
89
|
+
# Staging environment
|
|
90
|
+
dime = Client('your-api-token', 'https://staging.dimepayments.com')
|
|
91
|
+
|
|
92
|
+
# Full control
|
|
93
|
+
dime = Client(Config(
|
|
94
|
+
token='your-api-token',
|
|
95
|
+
base_url='https://app.dimepayments.com',
|
|
96
|
+
timeout=30.0, # seconds
|
|
97
|
+
max_retries=2, # retries 429 / 5xx / network errors with backoff
|
|
98
|
+
retry_base_delay=0.5,
|
|
99
|
+
))
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
The SDK sends `Authorization: Bearer <token>` and JSON headers on every request. Transient
|
|
103
|
+
failures (HTTP 429 and 5xx, network errors) are retried with exponential backoff, honoring the
|
|
104
|
+
`Retry-After` header when present.
|
|
105
|
+
|
|
106
|
+
## Resources
|
|
107
|
+
|
|
108
|
+
Every resource hangs off the client as a property. The merchant `sid` is always passed
|
|
109
|
+
explicitly; remaining fields go in an `attributes` or `filters` dict. All amounts are
|
|
110
|
+
returned as strings to avoid float rounding.
|
|
111
|
+
|
|
112
|
+
| Property | Endpoints |
|
|
113
|
+
| ------------------------------- | --------------------------------------------------------------------- |
|
|
114
|
+
| `dime.transactions` | charge_card, charge_ach, tokenize_card, refund, void, show, list |
|
|
115
|
+
| `dime.customers` | list, show, create, update, delete |
|
|
116
|
+
| `dime.payment_methods` | list, show, create, update, delete |
|
|
117
|
+
| `dime.merchants` | list, show, create, update, get_form_link |
|
|
118
|
+
| `dime.addresses` | list, show, create, update, delete |
|
|
119
|
+
| `dime.deposits` | list, list_with_transactions, show |
|
|
120
|
+
| `dime.recurring_payments` | list, show, create, edit, pause, cancel, activate, delete |
|
|
121
|
+
|
|
122
|
+
### Transactions
|
|
123
|
+
|
|
124
|
+
```python
|
|
125
|
+
# Charge a stored token
|
|
126
|
+
txn = dime.transactions.charge_card('000010', {
|
|
127
|
+
'amount': '100.00',
|
|
128
|
+
'token': 'tok_abc123',
|
|
129
|
+
'email': 'customer@example.com',
|
|
130
|
+
})
|
|
131
|
+
|
|
132
|
+
# Charge raw card details (merchant must be PCI compliant)
|
|
133
|
+
txn = dime.transactions.charge_card('000010', {
|
|
134
|
+
'amount': '100.00',
|
|
135
|
+
'cardholder_name': 'John Doe',
|
|
136
|
+
'card_number': '4111111111111111',
|
|
137
|
+
'expiration_date': '01/2027',
|
|
138
|
+
'cvv': '123',
|
|
139
|
+
})
|
|
140
|
+
|
|
141
|
+
# ACH
|
|
142
|
+
txn = dime.transactions.charge_ach('000010', {
|
|
143
|
+
'routing_number': '123456789',
|
|
144
|
+
'account_number': '9876543210',
|
|
145
|
+
'account_type': 'Checking',
|
|
146
|
+
'account_name': 'John Doe',
|
|
147
|
+
'amount': '75.00',
|
|
148
|
+
})
|
|
149
|
+
|
|
150
|
+
# Tokenize without charging
|
|
151
|
+
result = dime.transactions.tokenize_card('000010', {
|
|
152
|
+
'cardholder_name': 'John Doe',
|
|
153
|
+
'card_number': '4111111111111111',
|
|
154
|
+
'expiration_date': '01/2027',
|
|
155
|
+
})
|
|
156
|
+
print(result.token)
|
|
157
|
+
|
|
158
|
+
# Refund / void
|
|
159
|
+
dime.transactions.refund('000010', {'amount': '25.00', 'transaction_info_id': 123456})
|
|
160
|
+
dime.transactions.void('000010', 'CC', 123456)
|
|
161
|
+
|
|
162
|
+
# Read
|
|
163
|
+
txn = dime.transactions.show('000010', {'transaction_info_id': 123456})
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
### Customers, payment methods, addresses
|
|
167
|
+
|
|
168
|
+
```python
|
|
169
|
+
customer = dime.customers.create('000010', {
|
|
170
|
+
'first_name': 'Jane',
|
|
171
|
+
'last_name': 'Doe',
|
|
172
|
+
'email': 'jane@example.com',
|
|
173
|
+
})
|
|
174
|
+
|
|
175
|
+
pm = dime.payment_methods.create('000010', {
|
|
176
|
+
'uuid': customer.uuid,
|
|
177
|
+
'type': 'cc',
|
|
178
|
+
'cc_name_on_card': 'Jane Doe',
|
|
179
|
+
'cc_number': '4111111111111111',
|
|
180
|
+
'cc_expiration_date': '01/2027',
|
|
181
|
+
'cc_brand': 'Visa',
|
|
182
|
+
'default': True,
|
|
183
|
+
})
|
|
184
|
+
|
|
185
|
+
address = dime.addresses.create('000010', customer.uuid, {
|
|
186
|
+
'recipient': 'Jane Doe',
|
|
187
|
+
'line_one': '123 Main St',
|
|
188
|
+
'city': 'Atlanta',
|
|
189
|
+
'state': 'GA',
|
|
190
|
+
'zip': '30301',
|
|
191
|
+
})
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
### Recurring payments
|
|
195
|
+
|
|
196
|
+
```python
|
|
197
|
+
rp = dime.recurring_payments.create('000010', {
|
|
198
|
+
'name': 'Monthly donation',
|
|
199
|
+
'amount': '25.00',
|
|
200
|
+
'start_date': '2026-07-01 00:00:00',
|
|
201
|
+
'recurrence_schedule': 'Monthly',
|
|
202
|
+
'payment_method': pm.id,
|
|
203
|
+
'customer_uuid': customer.uuid,
|
|
204
|
+
})
|
|
205
|
+
|
|
206
|
+
dime.recurring_payments.pause('000010', rp.id, '2026-09-01 00:00:00')
|
|
207
|
+
dime.recurring_payments.activate('000010', rp.id)
|
|
208
|
+
dime.recurring_payments.cancel('000010', rp.id)
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
## Pagination
|
|
212
|
+
|
|
213
|
+
List endpoints return a `CursorPage`. Iterate one page, walk pages manually, or stream every
|
|
214
|
+
item across all pages with `auto_paging()`:
|
|
215
|
+
|
|
216
|
+
```python
|
|
217
|
+
page = dime.transactions.list('000010', {
|
|
218
|
+
'start_date': '2026-01-01 00:00:00',
|
|
219
|
+
'end_date': '2026-01-31 23:59:59',
|
|
220
|
+
})
|
|
221
|
+
|
|
222
|
+
# First page only
|
|
223
|
+
for txn in page:
|
|
224
|
+
print(txn.amount)
|
|
225
|
+
|
|
226
|
+
# Next page manually
|
|
227
|
+
if page.has_more():
|
|
228
|
+
next_page = page.next()
|
|
229
|
+
|
|
230
|
+
# Every transaction across every page (fetches lazily)
|
|
231
|
+
for txn in page.auto_paging():
|
|
232
|
+
print(txn.transaction_number)
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
## Error handling
|
|
236
|
+
|
|
237
|
+
Every failure raises a `DimeException` subclass. Catch the base type, or a specific one:
|
|
238
|
+
|
|
239
|
+
```python
|
|
240
|
+
from dime_payments import (
|
|
241
|
+
DimeException,
|
|
242
|
+
ValidationException,
|
|
243
|
+
RateLimitException,
|
|
244
|
+
)
|
|
245
|
+
import time
|
|
246
|
+
|
|
247
|
+
try:
|
|
248
|
+
dime.transactions.charge_card('000010', {'amount': '0'})
|
|
249
|
+
except ValidationException as e:
|
|
250
|
+
e.get_errors() # {'data.amount': ['must be greater than 0']}
|
|
251
|
+
e.first_error()
|
|
252
|
+
except RateLimitException as e:
|
|
253
|
+
wait = e.get_retry_after() or 1
|
|
254
|
+
time.sleep(wait)
|
|
255
|
+
except DimeException as e:
|
|
256
|
+
e.get_status_code() # HTTP status
|
|
257
|
+
e.get_response_body() # decoded API body
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
| Exception | When |
|
|
261
|
+
| ---------------------------- | ------------------------------------------------------------ |
|
|
262
|
+
| `ValidationException` | HTTP 400/422 with field errors |
|
|
263
|
+
| `AuthenticationException` | HTTP 401 (missing/invalid token) |
|
|
264
|
+
| `PermissionDeniedException` | HTTP 403 (belongs-to-company guard) |
|
|
265
|
+
| `NotFoundException` | HTTP 404 |
|
|
266
|
+
| `RateLimitException` | HTTP 429 (carries `Retry-After`) |
|
|
267
|
+
| `ServerException` | HTTP 5xx |
|
|
268
|
+
| `ConnectionException` | No HTTP response (DNS, timeout, network error) |
|
|
269
|
+
| `ApiException` | Any other non-2xx |
|
|
270
|
+
|
|
271
|
+
## Notes
|
|
272
|
+
|
|
273
|
+
- **GET requests carry a JSON body.** The Dime API expects read parameters in the request body
|
|
274
|
+
even for `GET` endpoints; the SDK handles this transparently.
|
|
275
|
+
- **No API versioning.** Endpoints live under `/api` with no version prefix.
|
|
276
|
+
|
|
277
|
+
## Development
|
|
278
|
+
|
|
279
|
+
```bash
|
|
280
|
+
python3.12 -m venv .venv
|
|
281
|
+
source .venv/bin/activate
|
|
282
|
+
pip install -e ".[dev]"
|
|
283
|
+
pytest # run tests
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
## License
|
|
287
|
+
|
|
288
|
+
MIT. See [LICENSE](LICENSE).
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
dime_payments/__init__.py,sha256=nJGtKtehbZMxar3wgdk8RIG_nNPSb6G9rmMyC2PnjqM,638
|
|
2
|
+
dime_payments/client.py,sha256=K4riOAzgJJvZUfICZxuh34fD0q5oUDeqRExNH51xhRA,1120
|
|
3
|
+
dime_payments/config.py,sha256=io97prwhlASHBRl0nm_YwckMuJxXFP2ylpsfbT7Bys8,847
|
|
4
|
+
dime_payments/data_objects/__init__.py,sha256=1t2xoZ5rX7RoAO9r-rAsTHoyHBNsK8_sEzHQ_8o1pWY,888
|
|
5
|
+
dime_payments/data_objects/address.py,sha256=ocnxRM3JDLr4mDtlnVgsnUb6Hy5u6vNQlWVRFHzuMIw,950
|
|
6
|
+
dime_payments/data_objects/customer.py,sha256=fSUPB9PynX_R3Jntnjr130ExeZtgrmRZSVfds54rmV0,1141
|
|
7
|
+
dime_payments/data_objects/deposit.py,sha256=b0rQdNgdprMtP0pdMrepsWG3jBt7fJ4FGZ1EuHTRQhA,1139
|
|
8
|
+
dime_payments/data_objects/deposit_group.py,sha256=kmfwnDO0YgmvmlSvIakb4cMFYOMfYDDnXMR4eiabSKA,813
|
|
9
|
+
dime_payments/data_objects/deposit_with_transactions.py,sha256=HjmWB5v2R67z5xgqoZt1rlV5nxvixrTmySS-zzUFA0c,1420
|
|
10
|
+
dime_payments/data_objects/form_link.py,sha256=rPU7cJynsrfb_1QjT8DkZ8ShvXVXUScBqJNZVASeJCI,280
|
|
11
|
+
dime_payments/data_objects/merchant.py,sha256=U6RbP3QJACjOtrSExyodfz9zOzeU2hThXwGD6M0XATI,1900
|
|
12
|
+
dime_payments/data_objects/message_result.py,sha256=2gZYbokwPRdlBUz_vGgYzrJpxMnjMuzwtTdjXhUv1GM,299
|
|
13
|
+
dime_payments/data_objects/payment_method.py,sha256=-3kcHBGoXD12mzHocMoKU0aBwoNJ_9GJFx5eldXUJxA,2460
|
|
14
|
+
dime_payments/data_objects/recurring_payment.py,sha256=E6F3oX6aqWeE2Ek4ePqDDbZ79APdIKKXVip4bTcFU-g,2209
|
|
15
|
+
dime_payments/data_objects/recurring_payment_method.py,sha256=P22ITvvxAUJ4NaEc7MH2ItCFm6wk1mEuxRs4ffSUDrg,402
|
|
16
|
+
dime_payments/data_objects/tokenize_result.py,sha256=i27Hc0A-dFM8cX8s9A71yM95kd48ih25fvnb3SEml54,295
|
|
17
|
+
dime_payments/data_objects/transaction.py,sha256=tP440NddFddKlWxE-9KVSOzkdW6bUwt_4sTNlvmmTTc,2623
|
|
18
|
+
dime_payments/data_objects/transaction_address.py,sha256=pHSlwQBFayh8dWRovyNVvOpAavO3JI0NtzgagAdww0Y,788
|
|
19
|
+
dime_payments/exceptions/__init__.py,sha256=1ZOOjwAyjip5Symv_6RMYQpj3Z9G0oNG1ISyJXad8sc,717
|
|
20
|
+
dime_payments/exceptions/api_exception.py,sha256=OKUdGN_X4p9OnK6T1-uipWEwwHVf1RwLuO-k7FdHKTI,88
|
|
21
|
+
dime_payments/exceptions/authentication_exception.py,sha256=8VsAGUIBAIQ-lTtHnSkiXOkK9bX7G_U3CH7IM99wC80,99
|
|
22
|
+
dime_payments/exceptions/connection_exception.py,sha256=KGssG2OIo0nI7G-GC0Pnwue1xKkqhJMqWfHL9oLPAyg,95
|
|
23
|
+
dime_payments/exceptions/dime_exception.py,sha256=3GsZOOMURwRoGztqf6hqej2A8Rvvwl1c1iSOn5CicIs,521
|
|
24
|
+
dime_payments/exceptions/not_found_exception.py,sha256=OUqpYYyCuSgbuHEa9qeLWtUBaD8cOoLTKFmBBtYAE_w,93
|
|
25
|
+
dime_payments/exceptions/permission_denied_exception.py,sha256=OswpsCq4_byi7VKLctxuEOKqzDGgmCsK9xwGHntxpkU,101
|
|
26
|
+
dime_payments/exceptions/rate_limit_exception.py,sha256=UAmgtRrX0MmnsMqgrnssLdLqYS_647nhwuEkMy-WJxo,496
|
|
27
|
+
dime_payments/exceptions/server_exception.py,sha256=SCUubaM1wTwFMW3E9mBSxry4A-0Q03JH6FQC0thFfvc,91
|
|
28
|
+
dime_payments/exceptions/validation_exception.py,sha256=_HGMPN-5iFq6RWJY-06Oaak565MeD-yRf6GnbXp7Sog,689
|
|
29
|
+
dime_payments/http/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
30
|
+
dime_payments/http/error_handler.py,sha256=dqClsyDIcCPS6CtiqtGvEwTnORj24m2muXThXfHdhX0,2873
|
|
31
|
+
dime_payments/http/transport.py,sha256=G2dPpXckNBUKjc0MwmzopF8YfACMR3LR3M9RROyX_Nw,2642
|
|
32
|
+
dime_payments/pagination/__init__.py,sha256=J2k8htn29Nu92KQh4wtEeN0StyMc8cWxVY8jQydF-dQ,62
|
|
33
|
+
dime_payments/pagination/cursor_page.py,sha256=Xpbt33ceBy_HQlqe3wFbxA93bUfx3rHcqXfhVAkOQJ0,2263
|
|
34
|
+
dime_payments/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
35
|
+
dime_payments/resources/abstract_resource.py,sha256=-XmnqJvk2tVNe44JeY_TTAzD4UiUKsQkl3Hia6ANHiQ,1522
|
|
36
|
+
dime_payments/resources/addresses.py,sha256=sg0q3YCnkdGlGM0onbBh_UsatrIu4VyzAA1BdZ1QRZ0,1713
|
|
37
|
+
dime_payments/resources/customers.py,sha256=6_9gG9tc2uHN-onhzNFP0NO67NxGOYqbwZmF96vU4bo,1545
|
|
38
|
+
dime_payments/resources/deposits.py,sha256=k8wE7kT_baHjXmXxzN9v6_2BqDb0GSUlINPRVtjmyUI,1213
|
|
39
|
+
dime_payments/resources/merchants.py,sha256=blVx7JIAps9ktdpLjjQofEnVkK_KgXOQP8beBPkHrkg,1370
|
|
40
|
+
dime_payments/resources/payment_methods.py,sha256=KJWryjnZadyohG1r6pmULjwPIjPIjScSK7ekQYamvYA,1775
|
|
41
|
+
dime_payments/resources/recurring_payments.py,sha256=DPihjc-C7oLLfPrP5UveNpEKHmUxayv4k3hFpguJ35c,2940
|
|
42
|
+
dime_payments/resources/transactions.py,sha256=Q0VwYDicdGuM1WQXqxPX_KS313A0KZVCeuVCyKS_G7k,2742
|
|
43
|
+
dime_payments/support/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
44
|
+
dime_payments/support/arr.py,sha256=_mboi_q3HGn_Sx_MgU2exkbl-fnP2gdDY8yeSC8hkNc,1722
|
|
45
|
+
dime_python_sdk-1.0.0.dist-info/METADATA,sha256=YdWerOwvU8IBJOFjpxJg3HuuEbrDW-oC19Mp9SJJeBo,9553
|
|
46
|
+
dime_python_sdk-1.0.0.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
|
|
47
|
+
dime_python_sdk-1.0.0.dist-info/licenses/LICENSE,sha256=-Xc5dLgfuFLVQLsSKNYmJKtNZCUU1_9ErffdGiwH-DU,1072
|
|
48
|
+
dime_python_sdk-1.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Dime Technology
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|