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

Commit

Permalink
Release 3.12.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
IngenicoEPayments authored and jenkins committed Jun 15, 2020
1 parent 6bc531e commit 458f731
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 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 = '3.11.0'
version = '3.12.0'
# The full version, including alpha/beta/rc tags.
release = '3.11.0'
release = '3.12.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 = 'Python SDK v3.11.0'
# html_title = 'Python SDK v3.12.0'

# A shorter title for the navigation bar. Default is the same as html_title.
#
Expand Down
21 changes: 21 additions & 0 deletions ingenico/connect/sdk/domain/product/definitions/payment_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
class PaymentProduct(DataObject):

__accounts_on_file = None
__allows_installments = None
__allows_recurring = None
__allows_tokenization = None
__authentication_indicator = None
Expand Down Expand Up @@ -50,6 +51,22 @@ def accounts_on_file(self):
def accounts_on_file(self, value):
self.__accounts_on_file = value

@property
def allows_installments(self):
"""
| Indicates if the product supports installments
* true - This payment supports installments
* false - This payment does not support installments
Type: bool
"""
return self.__allows_installments

@allows_installments.setter
def allows_installments(self, value):
self.__allows_installments = value

@property
def allows_recurring(self):
"""
Expand Down Expand Up @@ -352,6 +369,8 @@ def to_dictionary(self):
for element in self.accounts_on_file:
if element is not None:
dictionary['accountsOnFile'].append(element.to_dictionary())
if self.allows_installments is not None:
dictionary['allowsInstallments'] = self.allows_installments
if self.allows_recurring is not None:
dictionary['allowsRecurring'] = self.allows_recurring
if self.allows_tokenization is not None:
Expand Down Expand Up @@ -406,6 +425,8 @@ def from_dictionary(self, dictionary):
for element in dictionary['accountsOnFile']:
value = AccountOnFile()
self.accounts_on_file.append(value.from_dictionary(element))
if 'allowsInstallments' in dictionary:
self.allows_installments = dictionary['allowsInstallments']
if 'allowsRecurring' in dictionary:
self.allows_recurring = dictionary['allowsRecurring']
if 'allowsTokenization' in dictionary:
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 = "3.11.0"
__SDK_VERSION = "3.12.0"
__SERVER_META_INFO_HEADER = "X-GCS-ServerMetaInfo"
__prohibited_headers = [__SERVER_META_INFO_HEADER, "X-GCS-Idempotence-Key",
"Date", "Content-Type", "Authorization"]
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-python3",
version="3.11.0",
version="3.12.0",
author="Ingenico ePayments",
author_email="github@epay.ingenico.com",
description="SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Server API",
Expand Down

0 comments on commit 458f731

Please sign in to comment.