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

Commit de656ed

Browse files
Release 3.42.0.
1 parent f660d65 commit de656ed

File tree

6 files changed

+29
-7
lines changed

6 files changed

+29
-7
lines changed

conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@
6262
# built documents.
6363
#
6464
# The short X.Y version.
65-
version = '3.41.0'
65+
version = '3.42.0'
6666
# The full version, including alpha/beta/rc tags.
67-
release = '3.41.0'
67+
release = '3.42.0'
6868

6969
# The language for content autogenerated by Sphinx. Refer to documentation
7070
# for a list of supported languages.
@@ -138,7 +138,7 @@
138138
# The name for this set of Sphinx documents.
139139
# "<project> v<release> documentation" by default.
140140
#
141-
# html_title = 'Python SDK v3.41.0'
141+
# html_title = 'Python SDK v3.42.0'
142142

143143
# A shorter title for the navigation bar. Default is the same as html_title.
144144
#

ingenico/connect/sdk/domain/payment/definitions/order_references.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def merchant_order_id(self, value):
9494
@property
9595
def merchant_reference(self):
9696
"""
97-
| 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.
97+
| 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.
9898
9999
Type: str
100100
"""

ingenico/connect/sdk/domain/payment/definitions/refund_card_method_specific_output.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
# This class was auto-generated from the API references found at
44
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
55
#
6+
from ingenico.connect.sdk.domain.definitions.card_essentials import CardEssentials
67
from ingenico.connect.sdk.domain.payment.definitions.refund_method_specific_output import RefundMethodSpecificOutput
78

89

910
class RefundCardMethodSpecificOutput(RefundMethodSpecificOutput):
1011

1112
__authorisation_code = None
13+
__card = None
1214

1315
@property
1416
def authorisation_code(self):
@@ -23,14 +25,34 @@ def authorisation_code(self):
2325
def authorisation_code(self, value):
2426
self.__authorisation_code = value
2527

28+
@property
29+
def card(self):
30+
"""
31+
| Object containing card details
32+
33+
Type: :class:`ingenico.connect.sdk.domain.definitions.card_essentials.CardEssentials`
34+
"""
35+
return self.__card
36+
37+
@card.setter
38+
def card(self, value):
39+
self.__card = value
40+
2641
def to_dictionary(self):
2742
dictionary = super(RefundCardMethodSpecificOutput, self).to_dictionary()
2843
if self.authorisation_code is not None:
2944
dictionary['authorisationCode'] = self.authorisation_code
45+
if self.card is not None:
46+
dictionary['card'] = self.card.to_dictionary()
3047
return dictionary
3148

3249
def from_dictionary(self, dictionary):
3350
super(RefundCardMethodSpecificOutput, self).from_dictionary(dictionary)
3451
if 'authorisationCode' in dictionary:
3552
self.authorisation_code = dictionary['authorisationCode']
53+
if 'card' in dictionary:
54+
if not isinstance(dictionary['card'], dict):
55+
raise TypeError('value \'{}\' is not a dictionary'.format(dictionary['card']))
56+
value = CardEssentials()
57+
self.card = value.from_dictionary(dictionary['card'])
3658
return self

ingenico/connect/sdk/merchant/payments/find_payments_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def hosted_checkout_id(self, value):
3636
@property
3737
def merchant_reference(self):
3838
"""
39-
| Your unique transaction reference to filter on.
39+
| Your unique transaction reference to filter on. The maximum length is 52 characters for payments that are processed by WL Online Payment Acceptance platform.
4040
4141
Type: str
4242
"""

ingenico/connect/sdk/meta_data_provider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class MetaDataProvider:
2121
"""
2222
Provides meta info about the server.
2323
"""
24-
__SDK_VERSION = "3.41.0"
24+
__SDK_VERSION = "3.42.0"
2525
__SERVER_META_INFO_HEADER = "X-GCS-ServerMetaInfo"
2626
__prohibited_headers = [__SERVER_META_INFO_HEADER, "X-GCS-Idempotence-Key",
2727
"Date", "Content-Type", "Authorization"]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def test_collector():
2121

2222
setup(
2323
name="connect-sdk-python3",
24-
version="3.41.0",
24+
version="3.42.0",
2525
author="Ingenico ePayments",
2626
author_email="github@epay.ingenico.com",
2727
description="SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Server API",

0 commit comments

Comments
 (0)