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

Commit

Permalink
Release 2.2.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingenico ePayments committed Feb 13, 2017
1 parent fa44190 commit 63fc017
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 11 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.1.0'
version = u'2.2.0'
# The full version, including alpha/beta/rc tags.
release = u'2.1.0'
release = u'2.2.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.1.0'
# html_title = u'Python SDK v2.2.0'

# A shorter title for the navigation bar. Default is the same as html_title.
#
Expand Down
2 changes: 1 addition & 1 deletion examples/merchant/payments/create_payment_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def example(self):
item2_amount_of_money.currency_code = "EUR"

item2_invoice_data = LineItemInvoiceData()
item2_invoice_data.description = "Asperin"
item2_invoice_data.description = "Aspirin"
item2_invoice_data.nr_of_items = "12"
item2_invoice_data.price_per_item = 40

Expand Down
2 changes: 0 additions & 2 deletions ingenico/connect/sdk/api_resource.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import sys

from ingenico.connect.sdk.domain.errors.error_response import \
ErrorResponse
from ingenico.connect.sdk.domain.payment.payment_error_response import \
Expand Down
15 changes: 15 additions & 0 deletions ingenico/connect/sdk/domain/product/definitions/payment_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class PaymentProduct(DataObject):
__allows_recurring = None
__allows_tokenization = None
__auto_tokenized = None
__can_be_iframed = None
__display_hints = None
__fields = None
__id = None
Expand Down Expand Up @@ -73,6 +74,17 @@ def auto_tokenized(self):
def auto_tokenized(self, value):
self.__auto_tokenized = value

@property
def can_be_iframed(self):
"""
bool
"""
return self.__can_be_iframed

@can_be_iframed.setter
def can_be_iframed(self, value):
self.__can_be_iframed = value

@property
def display_hints(self):
"""
Expand Down Expand Up @@ -178,6 +190,7 @@ def to_dictionary(self):
self._add_to_dictionary(dictionary, 'allowsRecurring', self.allows_recurring)
self._add_to_dictionary(dictionary, 'allowsTokenization', self.allows_tokenization)
self._add_to_dictionary(dictionary, 'autoTokenized', self.auto_tokenized)
self._add_to_dictionary(dictionary, 'canBeIframed', self.can_be_iframed)
self._add_to_dictionary(dictionary, 'displayHints', self.display_hints)
self._add_to_dictionary(dictionary, 'fields', self.fields)
self._add_to_dictionary(dictionary, 'id', self.id)
Expand All @@ -204,6 +217,8 @@ def from_dictionary(self, dictionary):
self.allows_tokenization = dictionary['allowsTokenization']
if 'autoTokenized' in dictionary:
self.auto_tokenized = dictionary['autoTokenized']
if 'canBeIframed' in dictionary:
self.can_be_iframed = dictionary['canBeIframed']
if 'displayHints' in dictionary:
if not isinstance(dictionary['displayHints'], dict):
raise TypeError('value \'{}\' is not a dictionary'.format(dictionary['displayHints']))
Expand Down
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.1.0"
__SDK_VERSION = "2.2.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: 0 additions & 3 deletions ingenico/connect/sdk/response.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import sys


class Response(object):
"""
Thrown when a response was received from the GlobalCollect platform which indicates an error.
Expand Down
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.1.0",
version="2.2.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 63fc017

Please sign in to comment.