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

Commit

Permalink
Release 3.42.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
IngenicoEPayments committed Aug 11, 2023
1 parent 560353a commit dd83941
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 7 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'3.41.0'
version = u'3.42.0'
# The full version, including alpha/beta/rc tags.
release = u'3.41.0'
release = u'3.42.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 v3.41.0'
# html_title = u'Python SDK v3.42.0'

# A shorter title for the navigation bar. Default is the same as html_title.
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def merchant_order_id(self, value):
@property
def merchant_reference(self):
"""
| Note that the maximum length of this field for transactions processed on the GlobalCollect platform is 30. Your unique reference of the transaction that is also returned in our report files. This is almost always used for your reconciliation of our report files.
| Note that the maximum length of this field for transactions processed on the GlobalCollect platform is 30. Note that the maximum length of this field for transactions processed on the WL Online Payment Acceptance Platform platform is 50. Your unique reference of the transaction that is also returned in our report files. This is almost always used for your reconciliation of our report files.
Type: str
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
# This class was auto-generated from the API references found at
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
from ingenico.connect.sdk.domain.definitions.card_essentials import CardEssentials
from ingenico.connect.sdk.domain.payment.definitions.refund_method_specific_output import RefundMethodSpecificOutput


class RefundCardMethodSpecificOutput(RefundMethodSpecificOutput):

__authorisation_code = None
__card = None

@property
def authorisation_code(self):
Expand All @@ -23,14 +25,34 @@ def authorisation_code(self):
def authorisation_code(self, value):
self.__authorisation_code = value

@property
def card(self):
"""
| Object containing card details
Type: :class:`ingenico.connect.sdk.domain.definitions.card_essentials.CardEssentials`
"""
return self.__card

@card.setter
def card(self, value):
self.__card = value

def to_dictionary(self):
dictionary = super(RefundCardMethodSpecificOutput, self).to_dictionary()
if self.authorisation_code is not None:
dictionary['authorisationCode'] = self.authorisation_code
if self.card is not None:
dictionary['card'] = self.card.to_dictionary()
return dictionary

def from_dictionary(self, dictionary):
super(RefundCardMethodSpecificOutput, self).from_dictionary(dictionary)
if 'authorisationCode' in dictionary:
self.authorisation_code = dictionary['authorisationCode']
if 'card' in dictionary:
if not isinstance(dictionary['card'], dict):
raise TypeError('value \'{}\' is not a dictionary'.format(dictionary['card']))
value = CardEssentials()
self.card = value.from_dictionary(dictionary['card'])
return self
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def hosted_checkout_id(self, value):
@property
def merchant_reference(self):
"""
| Your unique transaction reference to filter on.
| Your unique transaction reference to filter on. The maximum length is 52 characters for payments that are processed by WL Online Payment Acceptance platform.
Type: str
"""
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.41.0"
__SDK_VERSION = "3.42.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-python2",
version="3.41.0",
version="3.42.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 dd83941

Please sign in to comment.