From 030a816aeb07e110d847b64a9e33cb0eca256787 Mon Sep 17 00:00:00 2001 From: Aaron Suarez Date: Tue, 18 Jun 2019 14:13:13 -0500 Subject: [PATCH 1/3] Bump to API version 2.21 --- .python-version | 1 + recurly/__init__.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .python-version diff --git a/.python-version b/.python-version new file mode 100644 index 00000000..7c69a55d --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.7.0 diff --git a/recurly/__init__.py b/recurly/__init__.py index 4a420a22..eba394f1 100644 --- a/recurly/__init__.py +++ b/recurly/__init__.py @@ -46,7 +46,7 @@ API_KEY = None """The API key to use when authenticating API requests.""" -API_VERSION = '2.20' +API_VERSION = '2.21' """The API version to use when making API requests.""" CA_CERTS_FILE = None From 3e92a9da4fad2aea7246ee3251c4631d1f4e6919 Mon Sep 17 00:00:00 2001 From: Aaron Suarez Date: Mon, 17 Jun 2019 15:24:08 -0500 Subject: [PATCH 2/3] Add 3DS tokens to transaction error and billing info --- recurly/__init__.py | 1 + recurly/errors.py | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/recurly/__init__.py b/recurly/__init__.py index eba394f1..1bcbbb4a 100644 --- a/recurly/__init__.py +++ b/recurly/__init__.py @@ -410,6 +410,7 @@ class BillingInfo(Resource): 'external_hpp_type', 'gateway_token', 'gateway_code', + 'three_d_secure_action_result_token_id', ) sensitive_attributes = ('number', 'verification_value', 'account_number') xml_attribute_attributes = ('type',) diff --git a/recurly/errors.py b/recurly/errors.py index dae479d2..a7ddf28c 100644 --- a/recurly/errors.py +++ b/recurly/errors.py @@ -185,6 +185,13 @@ def gateway_error_code(self): if el is not None: return el.text + @property + def three_d_secure_action_token_id(self): + """3DS Action Token ID for further authentication""" + el = self.response_doc.find('three_d_secure_action_token_id') + if el is not None: + return el.text + class ValidationError(ClientError): From 241f78522f6636b848a7a8b5888fc7720e607d6b Mon Sep 17 00:00:00 2001 From: Aaron Suarez Date: Thu, 27 Jun 2019 15:25:05 -0500 Subject: [PATCH 3/3] Bump to version 2.9.8 --- .python-version | 1 - CHANGELOG | 6 ++++++ recurly/__init__.py | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) delete mode 100644 .python-version diff --git a/.python-version b/.python-version deleted file mode 100644 index 7c69a55d..00000000 --- a/.python-version +++ /dev/null @@ -1 +0,0 @@ -3.7.0 diff --git a/CHANGELOG b/CHANGELOG index fb9969e8..426865f1 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,11 @@ ## Unreleased +## Version 2.9.8 – June 27th, 2019 ## + +This version brings us up to API version 2.21, but has no breaking changes + +- Add 3DS authentication [PR](https://github.com/recurly/recurly-client-python/pull/296) + ## Version 2.9.7 – May 21st, 2019 ## This version brings us up to API version 2.20, but has no breaking changes diff --git a/recurly/__init__.py b/recurly/__init__.py index 1bcbbb4a..9aa1029f 100644 --- a/recurly/__init__.py +++ b/recurly/__init__.py @@ -22,7 +22,7 @@ """ -__version__ = '2.9.7' +__version__ = '2.9.8' __python_version__ = '.'.join(map(str, sys.version_info[:3])) cached_rate_limits = {