asaas-python-sdk 1.2.1__tar.gz → 1.3.0__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.
- {asaas_python_sdk-1.2.1/src/asaas_python_sdk.egg-info → asaas_python_sdk-1.3.0}/PKG-INFO +1 -1
- {asaas_python_sdk-1.2.1 → asaas_python_sdk-1.3.0}/pyproject.toml +1 -1
- {asaas_python_sdk-1.2.1 → asaas_python_sdk-1.3.0}/src/asaas/apis/payments.py +16 -7
- {asaas_python_sdk-1.2.1 → asaas_python_sdk-1.3.0}/src/asaas/dtos/account.py +17 -17
- {asaas_python_sdk-1.2.1 → asaas_python_sdk-1.3.0/src/asaas_python_sdk.egg-info}/PKG-INFO +1 -1
- {asaas_python_sdk-1.2.1 → asaas_python_sdk-1.3.0}/LICENSE +0 -0
- {asaas_python_sdk-1.2.1 → asaas_python_sdk-1.3.0}/README.md +0 -0
- {asaas_python_sdk-1.2.1 → asaas_python_sdk-1.3.0}/setup.cfg +0 -0
- {asaas_python_sdk-1.2.1 → asaas_python_sdk-1.3.0}/src/__init__.py +0 -0
- {asaas_python_sdk-1.2.1 → asaas_python_sdk-1.3.0}/src/asaas/__init__.py +0 -0
- {asaas_python_sdk-1.2.1 → asaas_python_sdk-1.3.0}/src/asaas/api.py +0 -0
- {asaas_python_sdk-1.2.1 → asaas_python_sdk-1.3.0}/src/asaas/apis/__init__.py +0 -0
- {asaas_python_sdk-1.2.1 → asaas_python_sdk-1.3.0}/src/asaas/apis/accounts.py +0 -0
- {asaas_python_sdk-1.2.1 → asaas_python_sdk-1.3.0}/src/asaas/apis/credit_cards.py +0 -0
- {asaas_python_sdk-1.2.1 → asaas_python_sdk-1.3.0}/src/asaas/apis/customers.py +0 -0
- {asaas_python_sdk-1.2.1 → asaas_python_sdk-1.3.0}/src/asaas/apis/subscriptions.py +0 -0
- {asaas_python_sdk-1.2.1 → asaas_python_sdk-1.3.0}/src/asaas/apis/webhooks.py +0 -0
- {asaas_python_sdk-1.2.1 → asaas_python_sdk-1.3.0}/src/asaas/dtos/__init__.py +0 -0
- {asaas_python_sdk-1.2.1 → asaas_python_sdk-1.3.0}/src/asaas/dtos/credit_card.py +0 -0
- {asaas_python_sdk-1.2.1 → asaas_python_sdk-1.3.0}/src/asaas/dtos/customer.py +0 -0
- {asaas_python_sdk-1.2.1 → asaas_python_sdk-1.3.0}/src/asaas/dtos/payment.py +0 -0
- {asaas_python_sdk-1.2.1 → asaas_python_sdk-1.3.0}/src/asaas/dtos/subscription.py +0 -0
- {asaas_python_sdk-1.2.1 → asaas_python_sdk-1.3.0}/src/asaas/dtos/webhook.py +0 -0
- {asaas_python_sdk-1.2.1 → asaas_python_sdk-1.3.0}/src/asaas_python_sdk.egg-info/SOURCES.txt +0 -0
- {asaas_python_sdk-1.2.1 → asaas_python_sdk-1.3.0}/src/asaas_python_sdk.egg-info/dependency_links.txt +0 -0
- {asaas_python_sdk-1.2.1 → asaas_python_sdk-1.3.0}/src/asaas_python_sdk.egg-info/top_level.txt +0 -0
|
@@ -25,7 +25,16 @@ class Payments(AsaasApi):
|
|
|
25
25
|
|
|
26
26
|
def __init__(self):
|
|
27
27
|
super().__init__()
|
|
28
|
-
self.endpoint_url = UrlUtil().make_url(self.base_url, ['v3', 'payments'])
|
|
28
|
+
self.endpoint_url = UrlUtil().make_url(self.base_url, ['v3', 'payments'])]
|
|
29
|
+
|
|
30
|
+
def confirmReceiveInCash(self, payment_id):
|
|
31
|
+
try:
|
|
32
|
+
logging.info(f'confirm receive in cash...')
|
|
33
|
+
endpoint_url = UrlUtil().make_url(self.endpoint_url, [payment_id, 'receiveInCash'])
|
|
34
|
+
res = self.call_request(HTTPMethod.POST, endpoint_url)
|
|
35
|
+
return jsonpickle.decode(res)
|
|
36
|
+
except:
|
|
37
|
+
raise
|
|
29
38
|
|
|
30
39
|
def get_all(self, filters:Filter):
|
|
31
40
|
try:
|
|
@@ -42,8 +51,8 @@ class Payments(AsaasApi):
|
|
|
42
51
|
def get_by_id(self, payment_id):
|
|
43
52
|
try:
|
|
44
53
|
logging.info(f'get payment by id...')
|
|
45
|
-
|
|
46
|
-
res = self.call_request(HTTPMethod.GET,
|
|
54
|
+
endpoint_url = UrlUtil().make_url(self.endpoint_url, [payment_id])
|
|
55
|
+
res = self.call_request(HTTPMethod.GET, endpoint_url)
|
|
47
56
|
return jsonpickle.decode(res)
|
|
48
57
|
except:
|
|
49
58
|
raise
|
|
@@ -51,8 +60,8 @@ class Payments(AsaasApi):
|
|
|
51
60
|
def get_status_by_id(self, payment_id):
|
|
52
61
|
try:
|
|
53
62
|
logging.info(f'get payment by id...')
|
|
54
|
-
|
|
55
|
-
res = self.call_request(HTTPMethod.GET,
|
|
63
|
+
endpoint_url = UrlUtil().make_url(self.endpoint_url, [payment_id, 'status'])
|
|
64
|
+
res = self.call_request(HTTPMethod.GET, endpoint_url)
|
|
56
65
|
return jsonpickle.decode(res)
|
|
57
66
|
except:
|
|
58
67
|
raise
|
|
@@ -60,8 +69,8 @@ class Payments(AsaasApi):
|
|
|
60
69
|
def get_qrcode_pix(self, payment_id):
|
|
61
70
|
try:
|
|
62
71
|
logging.info(f'get payment PIX QRCode by id...')
|
|
63
|
-
|
|
64
|
-
res = self.call_request(HTTPMethod.GET,
|
|
72
|
+
endpoint_url = UrlUtil().make_url(self.endpoint_url, [payment_id, 'pixQrCode'])
|
|
73
|
+
res = self.call_request(HTTPMethod.GET, endpoint_url)
|
|
65
74
|
return jsonpickle.decode(res)
|
|
66
75
|
except:
|
|
67
76
|
raise
|
|
@@ -5,12 +5,12 @@ from fmconsult.utils.object import CustomObject
|
|
|
5
5
|
|
|
6
6
|
@dataclass
|
|
7
7
|
class Filter(CustomObject):
|
|
8
|
-
cpfCnpj:str
|
|
9
|
-
email:str
|
|
10
|
-
name:str
|
|
11
|
-
walletId:str
|
|
12
|
-
offset:int
|
|
13
|
-
limit:int
|
|
8
|
+
cpfCnpj: str
|
|
9
|
+
email: str
|
|
10
|
+
name: str
|
|
11
|
+
walletId: str
|
|
12
|
+
offset: int
|
|
13
|
+
limit: int
|
|
14
14
|
|
|
15
15
|
class CompanyType(CustomEnum):
|
|
16
16
|
MEI = 'MEI'
|
|
@@ -20,17 +20,17 @@ class CompanyType(CustomEnum):
|
|
|
20
20
|
|
|
21
21
|
@dataclass
|
|
22
22
|
class Account(CustomObject):
|
|
23
|
-
name:str
|
|
24
|
-
email:str
|
|
25
|
-
cpfCnpj:str
|
|
26
|
-
birthDate:str
|
|
27
|
-
mobilePhone:str
|
|
28
|
-
incomeValue:float
|
|
29
|
-
address:str
|
|
30
|
-
addressNumber:str
|
|
31
|
-
complement:str
|
|
32
|
-
province:str
|
|
33
|
-
postalCode:str
|
|
23
|
+
name: str
|
|
24
|
+
email: str
|
|
25
|
+
cpfCnpj: str
|
|
26
|
+
birthDate: str
|
|
27
|
+
mobilePhone: str
|
|
28
|
+
incomeValue: float
|
|
29
|
+
address: str
|
|
30
|
+
addressNumber: str
|
|
31
|
+
complement: str
|
|
32
|
+
province: str
|
|
33
|
+
postalCode: str
|
|
34
34
|
loginEmail: Optional[str] = None
|
|
35
35
|
companyType: Optional[CompanyType] = None
|
|
36
36
|
phone: Optional[str] = None
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{asaas_python_sdk-1.2.1 → asaas_python_sdk-1.3.0}/src/asaas_python_sdk.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{asaas_python_sdk-1.2.1 → asaas_python_sdk-1.3.0}/src/asaas_python_sdk.egg-info/top_level.txt
RENAMED
|
File without changes
|