Skip to content

Commit 3bf1527

Browse files
authored
Merge pull request #3 from romatallinn/v0.0.4
V0.0.4
2 parents 67eec2c + 642e970 commit 3bf1527

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.0.4
2+
3+
This release contains a single, but critical bug fix to base request's body to json conversion for ObjectJSON instances.
4+
15
## 0.0.3
26

37
The release contains multiple critical bug fixes and improvements.

braspag_sdk/utils/base_request.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from future.utils import raise_with_traceback
66
from requests import Request, Session
77

8+
from braspag_sdk import ObjectJSON
89
from braspag_sdk.apps.payments.data import MerchantCredentials
910

1011

@@ -27,7 +28,7 @@ def send_request(self, method, uri, data=None, params=None):
2728

2829
if not body:
2930
headers['Content-Length'] = '0'
30-
elif not isinstance(data, str):
31+
elif isinstance(data, ObjectJSON):
3132
body = body.toJSON()
3233

3334
if 'Content-Type' not in headers:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "braspag-sdk"
3-
version = "0.0.3"
3+
version = "0.0.4"
44
description = "An unofficial Python SDK for Braspag"
55
authors = [
66
"Roman Sirokov <sirokov@dizconto.com>",

0 commit comments

Comments
 (0)