payrex-python 1.7.4__tar.gz → 1.7.8__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 (53) hide show
  1. {payrex_python-1.7.4 → payrex_python-1.7.8}/PKG-INFO +14 -3
  2. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/__init__.py +2 -0
  3. payrex_python-1.7.8/payrex/entities/setup_intent_entity.py +16 -0
  4. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/services/payment_intent_service.py +8 -0
  5. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/services/service_factory.py +1 -0
  6. payrex_python-1.7.8/payrex/services/setup_intent_service.py +31 -0
  7. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex_python.egg-info/PKG-INFO +14 -3
  8. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex_python.egg-info/SOURCES.txt +2 -0
  9. {payrex_python-1.7.4 → payrex_python-1.7.8}/setup.py +2 -2
  10. {payrex_python-1.7.4 → payrex_python-1.7.8}/LICENSE +0 -0
  11. {payrex_python-1.7.4 → payrex_python-1.7.8}/README.md +0 -0
  12. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/api_resource.py +0 -0
  13. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/client.py +0 -0
  14. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/config.py +0 -0
  15. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/entities/__init__.py +0 -0
  16. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/entities/billing_statement_entity.py +0 -0
  17. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/entities/billing_statement_line_item_entity.py +0 -0
  18. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/entities/checkout_session_entity.py +0 -0
  19. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/entities/customer_entity.py +0 -0
  20. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/entities/customer_session_entity.py +0 -0
  21. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/entities/deleted_entity.py +0 -0
  22. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/entities/event_entity.py +0 -0
  23. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/entities/listing_entity.py +0 -0
  24. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/entities/payment_entity.py +0 -0
  25. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/entities/payment_intent_entity.py +0 -0
  26. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/entities/payout_entity.py +0 -0
  27. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/entities/payout_transaction_entity.py +0 -0
  28. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/entities/refund_entity.py +0 -0
  29. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/entities/webhook_entity.py +0 -0
  30. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/error.py +0 -0
  31. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/exceptions/__init__.py +0 -0
  32. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/exceptions/authentication_invalid_exception.py +0 -0
  33. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/exceptions/base_exception.py +0 -0
  34. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/exceptions/request_invalid_exception.py +0 -0
  35. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/exceptions/resource_not_found_exception.py +0 -0
  36. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/exceptions/signature_invalid_exception.py +0 -0
  37. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/exceptions/value_unexpected_exception.py +0 -0
  38. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/http_client.py +0 -0
  39. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/services/__init__.py +0 -0
  40. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/services/base_service.py +0 -0
  41. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/services/billing_statement_line_item_service.py +0 -0
  42. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/services/billing_statement_service.py +0 -0
  43. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/services/checkout_session_service.py +0 -0
  44. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/services/customer_service.py +0 -0
  45. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/services/customer_session_service.py +0 -0
  46. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/services/payment_service.py +0 -0
  47. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/services/payout_service.py +0 -0
  48. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/services/refund_service.py +0 -0
  49. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex/services/webhook_service.py +0 -0
  50. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex_python.egg-info/dependency_links.txt +0 -0
  51. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex_python.egg-info/requires.txt +0 -0
  52. {payrex_python-1.7.4 → payrex_python-1.7.8}/payrex_python.egg-info/top_level.txt +0 -0
  53. {payrex_python-1.7.4 → payrex_python-1.7.8}/setup.cfg +0 -0
@@ -1,10 +1,10 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: payrex-python
3
- Version: 1.7.4
3
+ Version: 1.7.8
4
4
  Summary: PayRex Python Library
5
5
  Home-page: https://github.com/payrexhq/payrex-python
6
6
  Author: PayRex
7
- Author-email: support@payrexhq.com
7
+ Author-email: support@payrex.com
8
8
  License: MIT
9
9
  Keywords: payrex
10
10
  Classifier: Development Status :: 4 - Beta
@@ -16,6 +16,17 @@ Classifier: License :: OSI Approved :: MIT License
16
16
  Description-Content-Type: text/markdown
17
17
  License-File: LICENSE
18
18
  Requires-Dist: requests
19
+ Dynamic: author
20
+ Dynamic: author-email
21
+ Dynamic: classifier
22
+ Dynamic: description
23
+ Dynamic: description-content-type
24
+ Dynamic: home-page
25
+ Dynamic: keywords
26
+ Dynamic: license
27
+ Dynamic: license-file
28
+ Dynamic: requires-dist
29
+ Dynamic: summary
19
30
 
20
31
  # PayRex Python
21
32
 
@@ -12,6 +12,7 @@ from payrex.http_client import HttpClient
12
12
 
13
13
  from payrex.entities.payment_entity import PaymentEntity
14
14
  from payrex.entities.payment_intent_entity import PaymentIntentEntity
15
+ from payrex.entities.setup_intent_entity import SetupIntentEntity
15
16
  from payrex.entities.payout_entity import PayoutEntity
16
17
  from payrex.entities.payout_transaction_entity import PayoutTransactionEntity
17
18
  from payrex.entities.checkout_session_entity import CheckoutSessionEntity
@@ -34,6 +35,7 @@ from payrex.services.billing_statement_line_item_service import BillingStatement
34
35
  from payrex.services.payment_service import PaymentService
35
36
  from payrex.services.payout_service import PayoutService
36
37
  from payrex.services.payment_intent_service import PaymentIntentService
38
+ from payrex.services.setup_intent_service import SetupIntentService
37
39
  from payrex.services.refund_service import RefundService
38
40
  from payrex.services.webhook_service import WebhookService
39
41
  from payrex.services.service_factory import ServiceFactory
@@ -0,0 +1,16 @@
1
+ class SetupIntentEntity:
2
+ def __init__(self, api_resource):
3
+ data = api_resource.data
4
+
5
+ self.id = data.get('id')
6
+ self.livemode = data.get('livemode')
7
+ self.client_secret = data.get('client_secret')
8
+ self.next_action = data.get('next_action')
9
+ self.payment_methods = data.get('payment_methods')
10
+ self.return_url = data.get('return_url')
11
+ self.status = data.get('status')
12
+ self.usage = data.get('usage')
13
+ self.customer = data.get('customer')
14
+ self.description = data.get('description')
15
+ self.created_at = data.get('created_at')
16
+ self.updated_at = data.get('updated_at')
@@ -21,6 +21,14 @@ class PaymentIntentService(BaseService):
21
21
  path=f'{self.PATH}/{id}/capture',
22
22
  payload=payload
23
23
  )
24
+
25
+ def update(self, id, payload):
26
+ return self.request(
27
+ method='put',
28
+ object=PaymentIntentEntity,
29
+ path=f'{self.PATH}/{id}',
30
+ payload=payload
31
+ )
24
32
 
25
33
  def create(self, payload):
26
34
  return self.request(
@@ -7,6 +7,7 @@ from payrex import CustomerService
7
7
  from payrex import BillingStatementService
8
8
  from payrex import BillingStatementLineItemService
9
9
  from payrex import PaymentIntentService
10
+ from payrex import SetupIntentService
10
11
  from payrex import PaymentService
11
12
  from payrex import PayoutService
12
13
  from payrex import RefundService
@@ -0,0 +1,31 @@
1
+ from payrex import BaseService
2
+ from payrex import SetupIntentEntity
3
+
4
+ class SetupIntentService(BaseService):
5
+ PATH = 'setup_intents'
6
+
7
+ def __init__(self, client):
8
+ BaseService.__init__(self, client)
9
+
10
+ def cancel(self, id):
11
+ return self.request(
12
+ method='post',
13
+ object=SetupIntentEntity,
14
+ path=f'{self.PATH}/{id}/cancel'
15
+ )
16
+
17
+ def create(self, payload):
18
+ return self.request(
19
+ method='post',
20
+ object=SetupIntentEntity,
21
+ path=self.PATH,
22
+ payload=payload
23
+ )
24
+
25
+ def retrieve(self, id):
26
+ return self.request(
27
+ method='get',
28
+ object=SetupIntentEntity,
29
+ path=f'{self.PATH}/{id}',
30
+ payload={}
31
+ )
@@ -1,10 +1,10 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: payrex-python
3
- Version: 1.7.4
3
+ Version: 1.7.8
4
4
  Summary: PayRex Python Library
5
5
  Home-page: https://github.com/payrexhq/payrex-python
6
6
  Author: PayRex
7
- Author-email: support@payrexhq.com
7
+ Author-email: support@payrex.com
8
8
  License: MIT
9
9
  Keywords: payrex
10
10
  Classifier: Development Status :: 4 - Beta
@@ -16,6 +16,17 @@ Classifier: License :: OSI Approved :: MIT License
16
16
  Description-Content-Type: text/markdown
17
17
  License-File: LICENSE
18
18
  Requires-Dist: requests
19
+ Dynamic: author
20
+ Dynamic: author-email
21
+ Dynamic: classifier
22
+ Dynamic: description
23
+ Dynamic: description-content-type
24
+ Dynamic: home-page
25
+ Dynamic: keywords
26
+ Dynamic: license
27
+ Dynamic: license-file
28
+ Dynamic: requires-dist
29
+ Dynamic: summary
19
30
 
20
31
  # PayRex Python
21
32
 
@@ -21,6 +21,7 @@ payrex/entities/payment_intent_entity.py
21
21
  payrex/entities/payout_entity.py
22
22
  payrex/entities/payout_transaction_entity.py
23
23
  payrex/entities/refund_entity.py
24
+ payrex/entities/setup_intent_entity.py
24
25
  payrex/entities/webhook_entity.py
25
26
  payrex/exceptions/__init__.py
26
27
  payrex/exceptions/authentication_invalid_exception.py
@@ -41,6 +42,7 @@ payrex/services/payment_service.py
41
42
  payrex/services/payout_service.py
42
43
  payrex/services/refund_service.py
43
44
  payrex/services/service_factory.py
45
+ payrex/services/setup_intent_service.py
44
46
  payrex/services/webhook_service.py
45
47
  payrex_python.egg-info/PKG-INFO
46
48
  payrex_python.egg-info/SOURCES.txt
@@ -3,9 +3,9 @@ from pathlib import Path
3
3
 
4
4
  setup(
5
5
  name='payrex-python',
6
- version='1.7.4',
6
+ version='1.7.8',
7
7
  author='PayRex',
8
- author_email='support@payrexhq.com',
8
+ author_email='support@payrex.com',
9
9
  description='PayRex Python Library',
10
10
  long_description=(Path(__file__).parent / 'README.md').read_text(),
11
11
  long_description_content_type='text/markdown',
File without changes
File without changes
File without changes