shwary-python 2.0.4__tar.gz → 2.0.5__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 (24) hide show
  1. {shwary_python-2.0.4 → shwary_python-2.0.5}/PKG-INFO +11 -11
  2. {shwary_python-2.0.4 → shwary_python-2.0.5}/README.md +10 -10
  3. {shwary_python-2.0.4 → shwary_python-2.0.5}/pyproject.toml +1 -1
  4. shwary_python-2.0.5/src/shwary/__version__.py +1 -0
  5. shwary_python-2.0.4/src/shwary/__version__.py +0 -1
  6. {shwary_python-2.0.4 → shwary_python-2.0.5}/.gitignore +0 -0
  7. {shwary_python-2.0.4 → shwary_python-2.0.5}/LICENSE +0 -0
  8. {shwary_python-2.0.4 → shwary_python-2.0.5}/src/shwary/__init__.py +0 -0
  9. {shwary_python-2.0.4 → shwary_python-2.0.5}/src/shwary/clients/__init__.py +0 -0
  10. {shwary_python-2.0.4 → shwary_python-2.0.5}/src/shwary/clients/async_client.py +0 -0
  11. {shwary_python-2.0.4 → shwary_python-2.0.5}/src/shwary/clients/base.py +0 -0
  12. {shwary_python-2.0.4 → shwary_python-2.0.5}/src/shwary/clients/sync.py +0 -0
  13. {shwary_python-2.0.4 → shwary_python-2.0.5}/src/shwary/core.py +0 -0
  14. {shwary_python-2.0.4 → shwary_python-2.0.5}/src/shwary/exceptions.py +0 -0
  15. {shwary_python-2.0.4 → shwary_python-2.0.5}/src/shwary/logging_config.py +0 -0
  16. {shwary_python-2.0.4 → shwary_python-2.0.5}/src/shwary/py.typed +0 -0
  17. {shwary_python-2.0.4 → shwary_python-2.0.5}/src/shwary/schemas.py +0 -0
  18. {shwary_python-2.0.4 → shwary_python-2.0.5}/src/shwary/tests/__init__.py +0 -0
  19. {shwary_python-2.0.4 → shwary_python-2.0.5}/src/shwary/tests/test_advanced.py +0 -0
  20. {shwary_python-2.0.4 → shwary_python-2.0.5}/src/shwary/tests/test_client.py +0 -0
  21. {shwary_python-2.0.4 → shwary_python-2.0.5}/src/shwary/tests/test_client_async.py +0 -0
  22. {shwary_python-2.0.4 → shwary_python-2.0.5}/src/shwary/tests/test_schemas.py +0 -0
  23. {shwary_python-2.0.4 → shwary_python-2.0.5}/src/shwary/tests/test_validators.py +0 -0
  24. {shwary_python-2.0.4 → shwary_python-2.0.5}/src/shwary/validators.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: shwary-python
3
- Version: 2.0.4
3
+ Version: 2.0.5
4
4
  Summary: SDK Python moderne (Async/Sync) pour l'API de paiement Shwary.
5
5
  Author-email: Josué Luis Panzu <josuepanzu8@gmail.com>
6
6
  License: MIT
@@ -254,8 +254,8 @@ async def initiate_payment(phone: str, amount: float, country: str = "DRC"):
254
254
 
255
255
  return {
256
256
  "success": True,
257
- "transaction_id": payment["id"],
258
- "status": payment["status"]
257
+ "transaction_id": payment.id,
258
+ "status": payment.status
259
259
  }
260
260
 
261
261
  except ValidationError as e:
@@ -301,9 +301,9 @@ async def get_transaction_status(transaction_id: str):
301
301
  tx = await client.get_transaction(transaction_id)
302
302
 
303
303
  return {
304
- "id": tx["id"],
305
- "status": tx["status"],
306
- "amount": tx["amount"]
304
+ "id": tx.id,
305
+ "status": tx.status,
306
+ "amount": tx.amount
307
307
  }
308
308
 
309
309
  except ShwaryAPIError as e:
@@ -360,8 +360,8 @@ def initiate_payment():
360
360
 
361
361
  return jsonify({
362
362
  "success": True,
363
- "transaction_id": payment["id"],
364
- "status": payment["status"]
363
+ "transaction_id": payment.id,
364
+ "status": payment.status
365
365
  }), 200
366
366
 
367
367
  except ValidationError as e:
@@ -413,9 +413,9 @@ def get_transaction_status(transaction_id):
413
413
  tx = shwary_client.get_transaction(transaction_id)
414
414
 
415
415
  return jsonify({
416
- "id": tx["id"],
417
- "status": tx["status"],
418
- "amount": tx["amount"]
416
+ "id": tx.id,
417
+ "status": tx.status,
418
+ "amount": tx.amount
419
419
  }), 200
420
420
 
421
421
  except ShwaryAPIError as e:
@@ -234,8 +234,8 @@ async def initiate_payment(phone: str, amount: float, country: str = "DRC"):
234
234
 
235
235
  return {
236
236
  "success": True,
237
- "transaction_id": payment["id"],
238
- "status": payment["status"]
237
+ "transaction_id": payment.id,
238
+ "status": payment.status
239
239
  }
240
240
 
241
241
  except ValidationError as e:
@@ -281,9 +281,9 @@ async def get_transaction_status(transaction_id: str):
281
281
  tx = await client.get_transaction(transaction_id)
282
282
 
283
283
  return {
284
- "id": tx["id"],
285
- "status": tx["status"],
286
- "amount": tx["amount"]
284
+ "id": tx.id,
285
+ "status": tx.status,
286
+ "amount": tx.amount
287
287
  }
288
288
 
289
289
  except ShwaryAPIError as e:
@@ -340,8 +340,8 @@ def initiate_payment():
340
340
 
341
341
  return jsonify({
342
342
  "success": True,
343
- "transaction_id": payment["id"],
344
- "status": payment["status"]
343
+ "transaction_id": payment.id,
344
+ "status": payment.status
345
345
  }), 200
346
346
 
347
347
  except ValidationError as e:
@@ -393,9 +393,9 @@ def get_transaction_status(transaction_id):
393
393
  tx = shwary_client.get_transaction(transaction_id)
394
394
 
395
395
  return jsonify({
396
- "id": tx["id"],
397
- "status": tx["status"],
398
- "amount": tx["amount"]
396
+ "id": tx.id,
397
+ "status": tx.status,
398
+ "amount": tx.amount
399
399
  }), 200
400
400
 
401
401
  except ShwaryAPIError as e:
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "shwary-python"
3
- version = "2.0.4"
3
+ version = "2.0.5"
4
4
  description = "SDK Python moderne (Async/Sync) pour l'API de paiement Shwary."
5
5
  readme = "README.md"
6
6
  authors = [
@@ -0,0 +1 @@
1
+ __version__ = "2.0.5"
@@ -1 +0,0 @@
1
- __version__ = "2.0.0"
File without changes
File without changes