Skip to content

Commit

Permalink
Merge pull request #300 from recurly/api_version_2_21
Browse files Browse the repository at this point in the history
Release version 2.9.8
  • Loading branch information
bhelx authored Jun 27, 2019
2 parents a3374d6 + 241f785 commit d60439a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 3 additions & 2 deletions recurly/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"""

__version__ = '2.9.7'
__version__ = '2.9.8'
__python_version__ = '.'.join(map(str, sys.version_info[:3]))

cached_rate_limits = {
Expand All @@ -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
Expand Down Expand Up @@ -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',)
Expand Down
7 changes: 7 additions & 0 deletions recurly/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):

Expand Down

0 comments on commit d60439a

Please sign in to comment.