dwollav2
Advanced tools
| Metadata-Version: 2.1 | ||
| Name: dwollav2 | ||
| Version: 1.6.0 | ||
| Version: 2.0.0 | ||
| Summary: Official Dwolla V2 API client | ||
@@ -207,2 +207,12 @@ Home-page: https://docsv2.dwolla.com | ||
| - **2.0.0** | ||
| - JSON request bodies now contain sorted keys to ensure the same request body for a given set of | ||
| arguments, no matter the order they are passed to `dwolla.post`. This ensures the | ||
| [`Idempotency-Key`][] header will work as intended without additional effort by developers. | ||
| - **NOTE**: Because this change alters the formatting of JSON request bodies, we are releasing it | ||
| as a major new version. The request body of a request made with `1.6.0` will not match the | ||
| request body of the same request made in `2.0.0`. This will nullify the effect of the | ||
| [`Idempotency-Key`][] header when upgrading, so please take this into account. | ||
| If you have any questions please [reach out to us](https://discuss.dwolla.com/)! | ||
| There are no other changes since `1.6.0`. | ||
| - **1.6.0** Allow configuration of `requests` options on `dwollav2.Client`. | ||
@@ -224,2 +234,4 @@ - **1.5.0** Add integrations auth functionality | ||
| [`idempotency-key`]: https://docs.dwolla.com/#idempotency-key | ||
| Platform: UNKNOWN | ||
@@ -226,0 +238,0 @@ Classifier: Development Status :: 4 - Beta |
| import requests | ||
| from io import IOBase | ||
| import re | ||
| import json | ||
@@ -68,3 +69,8 @@ from dwollav2.response import Response | ||
| else: | ||
| return Response(self.session.post(self._full_url(url), headers=headers, json=body, **requests)) | ||
| return Response(self.session.post( | ||
| self._full_url(url), | ||
| headers=self._merge_dicts( | ||
| {'content-type': 'application/json'}, headers), | ||
| data=json.dumps(body, sort_keys=True, indent=2), | ||
| **requests)) | ||
@@ -71,0 +77,0 @@ def get(self, url, params=None, headers={}, **kwargs): |
@@ -1,1 +0,1 @@ | ||
| version = '1.3.0' | ||
| version = '2.0.0' |
+1
-1
| The MIT License (MIT) | ||
| Copyright (c) 2016 Stephen Ausman | ||
| Copyright (c) 2020 Dwolla, Inc. | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
+13
-1
| Metadata-Version: 2.1 | ||
| Name: dwollav2 | ||
| Version: 1.6.0 | ||
| Version: 2.0.0 | ||
| Summary: Official Dwolla V2 API client | ||
@@ -207,2 +207,12 @@ Home-page: https://docsv2.dwolla.com | ||
| - **2.0.0** | ||
| - JSON request bodies now contain sorted keys to ensure the same request body for a given set of | ||
| arguments, no matter the order they are passed to `dwolla.post`. This ensures the | ||
| [`Idempotency-Key`][] header will work as intended without additional effort by developers. | ||
| - **NOTE**: Because this change alters the formatting of JSON request bodies, we are releasing it | ||
| as a major new version. The request body of a request made with `1.6.0` will not match the | ||
| request body of the same request made in `2.0.0`. This will nullify the effect of the | ||
| [`Idempotency-Key`][] header when upgrading, so please take this into account. | ||
| If you have any questions please [reach out to us](https://discuss.dwolla.com/)! | ||
| There are no other changes since `1.6.0`. | ||
| - **1.6.0** Allow configuration of `requests` options on `dwollav2.Client`. | ||
@@ -224,2 +234,4 @@ - **1.5.0** Add integrations auth functionality | ||
| [`idempotency-key`]: https://docs.dwolla.com/#idempotency-key | ||
| Platform: UNKNOWN | ||
@@ -226,0 +238,0 @@ Classifier: Development Status :: 4 - Beta |
+12
-0
@@ -199,2 +199,12 @@ # DwollaV2 | ||
| - **2.0.0** | ||
| - JSON request bodies now contain sorted keys to ensure the same request body for a given set of | ||
| arguments, no matter the order they are passed to `dwolla.post`. This ensures the | ||
| [`Idempotency-Key`][] header will work as intended without additional effort by developers. | ||
| - **NOTE**: Because this change alters the formatting of JSON request bodies, we are releasing it | ||
| as a major new version. The request body of a request made with `1.6.0` will not match the | ||
| request body of the same request made in `2.0.0`. This will nullify the effect of the | ||
| [`Idempotency-Key`][] header when upgrading, so please take this into account. | ||
| If you have any questions please [reach out to us](https://discuss.dwolla.com/)! | ||
| There are no other changes since `1.6.0`. | ||
| - **1.6.0** Allow configuration of `requests` options on `dwollav2.Client`. | ||
@@ -215,1 +225,3 @@ - **1.5.0** Add integrations auth functionality | ||
| - **1.1.0** Support per-request headers | ||
| [`idempotency-key`]: https://docs.dwolla.com/#idempotency-key |
+1
-1
@@ -12,3 +12,3 @@ import os | ||
| name='dwollav2', | ||
| version='1.6.0', | ||
| version='2.0.0', | ||
| packages=['dwollav2'], | ||
@@ -15,0 +15,0 @@ install_requires=[ |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
45773
6.93%366
1.67%