From dd839414be9a431d9d03736b5293d72a4f586717 Mon Sep 17 00:00:00 2001 From: Ingenico ePayments Date: Fri, 11 Aug 2023 09:41:57 +0200 Subject: [PATCH] Release 3.42.0. --- conf.py | 6 ++--- .../payment/definitions/order_references.py | 2 +- .../refund_card_method_specific_output.py | 22 +++++++++++++++++++ .../merchant/payments/find_payments_params.py | 2 +- ingenico/connect/sdk/meta_data_provider.py | 2 +- setup.py | 2 +- 6 files changed, 29 insertions(+), 7 deletions(-) diff --git a/conf.py b/conf.py index 6684f7d83..f66aaf41f 100644 --- a/conf.py +++ b/conf.py @@ -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. @@ -138,7 +138,7 @@ # The name for this set of Sphinx documents. # " v 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. # diff --git a/ingenico/connect/sdk/domain/payment/definitions/order_references.py b/ingenico/connect/sdk/domain/payment/definitions/order_references.py index 3935a0288..b94cd37e5 100644 --- a/ingenico/connect/sdk/domain/payment/definitions/order_references.py +++ b/ingenico/connect/sdk/domain/payment/definitions/order_references.py @@ -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 """ diff --git a/ingenico/connect/sdk/domain/payment/definitions/refund_card_method_specific_output.py b/ingenico/connect/sdk/domain/payment/definitions/refund_card_method_specific_output.py index 59a584a3e..894e1926f 100644 --- a/ingenico/connect/sdk/domain/payment/definitions/refund_card_method_specific_output.py +++ b/ingenico/connect/sdk/domain/payment/definitions/refund_card_method_specific_output.py @@ -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): @@ -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 diff --git a/ingenico/connect/sdk/merchant/payments/find_payments_params.py b/ingenico/connect/sdk/merchant/payments/find_payments_params.py index 01e5f19a9..5e67d04d8 100644 --- a/ingenico/connect/sdk/merchant/payments/find_payments_params.py +++ b/ingenico/connect/sdk/merchant/payments/find_payments_params.py @@ -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 """ diff --git a/ingenico/connect/sdk/meta_data_provider.py b/ingenico/connect/sdk/meta_data_provider.py index e6cb2f217..ed3fff15d 100644 --- a/ingenico/connect/sdk/meta_data_provider.py +++ b/ingenico/connect/sdk/meta_data_provider.py @@ -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"] diff --git a/setup.py b/setup.py index 70aa23192..321150a7b 100644 --- a/setup.py +++ b/setup.py @@ -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",