Skip to content

Commit c8ae217

Browse files
committed
Minor changes to config project
1 parent a8566f6 commit c8ae217

4 files changed

Lines changed: 9 additions & 47 deletions

File tree

.editorconfig

Lines changed: 0 additions & 41 deletions
This file was deleted.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2017 tMalaca
3+
Copyright (c) 2024 Roman Sirokov <sirokov@dizconto.com>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

braspag_sdk/utils/base_request.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
import json
22
import uuid
3+
from typing import Dict
34

45
from future.utils import raise_with_traceback
56
from requests import Request, Session
67

8+
from braspag_sdk.apps.payments.data import MerchantCredentials
9+
710

811
class Base(object):
912

10-
def __init__(self, authorization_headers):
13+
def __init__(self, authorization_headers: Dict):
1114
self.authorization_headers = authorization_headers
1215

1316
def send_request(self, method, uri, data=None, params=None):
@@ -55,17 +58,17 @@ def send_request(self, method, uri, data=None, params=None):
5558

5659
class ApiBase(Base):
5760

58-
def __init__(self, credentials):
61+
def __init__(self, credentials: MerchantCredentials):
5962
authorization_headers = {
60-
'MerchantId': credentials._merchant_id,
63+
'MerchantId': credentials.merchant_id,
6164
'MerchantKey': credentials.merchant_key,
6265
}
6366
super().__init__(authorization_headers=authorization_headers)
6467

6568

6669
class ApiOauthBase(Base):
6770

68-
def __init__(self, access_token):
71+
def __init__(self, access_token: str):
6972
authorization_headers = {
7073
'Authorization': 'Bearer ' + access_token,
7174
}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ authors = [
88
homepage = "https://github.com/romatallinn/braspagSdk-python"
99
repository = "https://github.com/romatallinn/braspagSdk-python"
1010
readme = "README.md"
11-
keywords = ["braspag", "sdk", "python", "cielo", "api", "ecommerce", "brazil"]
11+
keywords = ["braspag", "sdk", "python", "cielo", "api", "ecommerce", "brazil", "payments"]
1212
packages = [{include = "braspag_sdk"}]
1313
classifiers = [
1414
'Development Status :: 3 - Alpha',

0 commit comments

Comments
 (0)