Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
Release 2.3.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingenico ePayments committed Mar 9, 2017
1 parent 63fc017 commit 0ee6af5
Show file tree
Hide file tree
Showing 9 changed files with 82 additions and 8 deletions.
6 changes: 3 additions & 3 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@
# built documents.
#
# The short X.Y version.
version = u'2.2.0'
version = u'2.3.0'
# The full version, including alpha/beta/rc tags.
release = u'2.2.0'
release = u'2.3.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down Expand Up @@ -138,7 +138,7 @@
# The name for this set of Sphinx documents.
# "<project> v<release> documentation" by default.
#
# html_title = u'Python SDK v2.2.0'
# html_title = u'Python SDK v2.3.0'

# A shorter title for the navigation bar. Default is the same as html_title.
#
Expand Down
2 changes: 1 addition & 1 deletion index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
.. toctree::
:maxdepth: 10

.. include:: readme.rst
.. include:: README.rst

API Reference
=============
Expand Down
30 changes: 30 additions & 0 deletions ingenico/connect/sdk/domain/errors/definitions/api_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,25 @@ class APIError(DataObject):
See also https://developer.globalcollect.com/documentation/api/server/#schema_APIError
"""

__category = None
__code = None
__http_status_code = None
__id = None
__message = None
__property_name = None
__request_id = None

@property
def category(self):
"""
str
"""
return self.__category

@category.setter
def category(self, value):
self.__category = value

@property
def code(self):
"""
Expand All @@ -40,6 +53,17 @@ def http_status_code(self):
def http_status_code(self, value):
self.__http_status_code = value

@property
def id(self):
"""
str
"""
return self.__id

@id.setter
def id(self, value):
self.__id = value

@property
def message(self):
"""
Expand Down Expand Up @@ -75,19 +99,25 @@ def request_id(self, value):

def to_dictionary(self):
dictionary = super(APIError, self).to_dictionary()
self._add_to_dictionary(dictionary, 'category', self.category)
self._add_to_dictionary(dictionary, 'code', self.code)
self._add_to_dictionary(dictionary, 'httpStatusCode', self.http_status_code)
self._add_to_dictionary(dictionary, 'id', self.id)
self._add_to_dictionary(dictionary, 'message', self.message)
self._add_to_dictionary(dictionary, 'propertyName', self.property_name)
self._add_to_dictionary(dictionary, 'requestId', self.request_id)
return dictionary

def from_dictionary(self, dictionary):
super(APIError, self).from_dictionary(dictionary)
if 'category' in dictionary:
self.category = dictionary['category']
if 'code' in dictionary:
self.code = dictionary['code']
if 'httpStatusCode' in dictionary:
self.http_status_code = dictionary['httpStatusCode']
if 'id' in dictionary:
self.id = dictionary['id']
if 'message' in dictionary:
self.message = dictionary['message']
if 'propertyName' in dictionary:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class CardPaymentMethodSpecificInputBase(AbstractPaymentMethodSpecificInput):
__skip_authentication = None
__skip_fraud_service = None
__token = None
__tokenize = None

@property
def authorization_mode(self):
Expand Down Expand Up @@ -97,6 +98,17 @@ def token(self):
def token(self, value):
self.__token = value

@property
def tokenize(self):
"""
bool
"""
return self.__tokenize

@tokenize.setter
def tokenize(self, value):
self.__tokenize = value

def to_dictionary(self):
dictionary = super(CardPaymentMethodSpecificInputBase, self).to_dictionary()
self._add_to_dictionary(dictionary, 'authorizationMode', self.authorization_mode)
Expand All @@ -106,6 +118,7 @@ def to_dictionary(self):
self._add_to_dictionary(dictionary, 'skipAuthentication', self.skip_authentication)
self._add_to_dictionary(dictionary, 'skipFraudService', self.skip_fraud_service)
self._add_to_dictionary(dictionary, 'token', self.token)
self._add_to_dictionary(dictionary, 'tokenize', self.tokenize)
return dictionary

def from_dictionary(self, dictionary):
Expand All @@ -124,4 +137,6 @@ def from_dictionary(self, dictionary):
self.skip_fraud_service = dictionary['skipFraudService']
if 'token' in dictionary:
self.token = dictionary['token']
if 'tokenize' in dictionary:
self.tokenize = dictionary['tokenize']
return self
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class NonSepaDirectDebitPaymentMethodSpecificInput(AbstractPaymentMethodSpecific
__payment_product705_specific_input = None
__recurring_payment_sequence_indicator = None
__token = None
__tokenize = None

@property
def date_collect(self):
Expand Down Expand Up @@ -86,6 +87,17 @@ def token(self):
def token(self, value):
self.__token = value

@property
def tokenize(self):
"""
bool
"""
return self.__tokenize

@tokenize.setter
def tokenize(self, value):
self.__tokenize = value

def to_dictionary(self):
dictionary = super(NonSepaDirectDebitPaymentMethodSpecificInput, self).to_dictionary()
self._add_to_dictionary(dictionary, 'dateCollect', self.date_collect)
Expand All @@ -94,6 +106,7 @@ def to_dictionary(self):
self._add_to_dictionary(dictionary, 'paymentProduct705SpecificInput', self.payment_product705_specific_input)
self._add_to_dictionary(dictionary, 'recurringPaymentSequenceIndicator', self.recurring_payment_sequence_indicator)
self._add_to_dictionary(dictionary, 'token', self.token)
self._add_to_dictionary(dictionary, 'tokenize', self.tokenize)
return dictionary

def from_dictionary(self, dictionary):
Expand All @@ -113,4 +126,6 @@ def from_dictionary(self, dictionary):
self.recurring_payment_sequence_indicator = dictionary['recurringPaymentSequenceIndicator']
if 'token' in dictionary:
self.token = dictionary['token']
if 'tokenize' in dictionary:
self.tokenize = dictionary['tokenize']
return self
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class SepaDirectDebitPaymentMethodSpecificInput(AbstractPaymentMethodSpecificInp
__is_recurring = None
__recurring_payment_sequence_indicator = None
__token = None
__tokenize = None

@property
def date_collect(self):
Expand Down Expand Up @@ -73,13 +74,25 @@ def token(self):
def token(self, value):
self.__token = value

@property
def tokenize(self):
"""
bool
"""
return self.__tokenize

@tokenize.setter
def tokenize(self, value):
self.__tokenize = value

def to_dictionary(self):
dictionary = super(SepaDirectDebitPaymentMethodSpecificInput, self).to_dictionary()
self._add_to_dictionary(dictionary, 'dateCollect', self.date_collect)
self._add_to_dictionary(dictionary, 'directDebitText', self.direct_debit_text)
self._add_to_dictionary(dictionary, 'isRecurring', self.is_recurring)
self._add_to_dictionary(dictionary, 'recurringPaymentSequenceIndicator', self.recurring_payment_sequence_indicator)
self._add_to_dictionary(dictionary, 'token', self.token)
self._add_to_dictionary(dictionary, 'tokenize', self.tokenize)
return dictionary

def from_dictionary(self, dictionary):
Expand All @@ -94,4 +107,6 @@ def from_dictionary(self, dictionary):
self.recurring_payment_sequence_indicator = dictionary['recurringPaymentSequenceIndicator']
if 'token' in dictionary:
self.token = dictionary['token']
if 'tokenize' in dictionary:
self.tokenize = dictionary['tokenize']
return self
2 changes: 1 addition & 1 deletion ingenico/connect/sdk/meta_data_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class MetaDataProvider:
"""
Provides meta info about the server.
"""
__SDK_VERSION = "2.2.0"
__SDK_VERSION = "2.3.0"
__SERVER_META_INFO_HEADER = "X-GCS-ServerMetaInfo"
__prohibited_headers = [__SERVER_META_INFO_HEADER, "X-GCS-Idempotence-Key",
"Date", "Content-Type", "Authorization"]
Expand Down
3 changes: 1 addition & 2 deletions ingenico/connect/sdk/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ def authenticator(self):
@property
def meta_data_provider(self):
"""
:return: The MetaDataProvider object associated with this session. Never
None.
:return: The MetaDataProvider object associated with this session. Never None.
"""
return self.__meta_data_provider
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def test_collector():

setup(
name="connect-sdk-python2",
version="2.2.0",
version="2.3.0",
author="Ingenico ePayments",
author_email="github@epay.ingenico.com",
description="SDK to communicate with the GlobalCollect platform using the Ingenico Connect Server API",
Expand Down

0 comments on commit 0ee6af5

Please sign in to comment.