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

Commit 37116b2

Browse files
Release 3.44.0.
1 parent 881f870 commit 37116b2

12 files changed

+409
-5
lines changed

conf.py

+3-3
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.43.0'
65+
version = '3.44.0'
6666
# The full version, including alpha/beta/rc tags.
67-
release = '3.43.0'
67+
release = '3.44.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.43.0'
141+
# html_title = 'Python SDK v3.44.0'
142142

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

index.rst

+21
Original file line numberDiff line numberDiff line change
@@ -1108,6 +1108,13 @@ API Reference
11081108
:special-members:
11091109
:exclude-members: __dict__,__weakref__,__module__,__get__
11101110

1111+
.. automodule:: ingenico.connect.sdk.domain.payment.definitions.account_funding_recipient
1112+
:members:
1113+
:show-inheritance:
1114+
:undoc-members:
1115+
:special-members:
1116+
:exclude-members: __dict__,__weakref__,__module__,__get__
1117+
11111118
.. automodule:: ingenico.connect.sdk.domain.payment.definitions.additional_order_input
11121119
:members:
11131120
:show-inheritance:
@@ -1122,6 +1129,13 @@ API Reference
11221129
:special-members:
11231130
:exclude-members: __dict__,__weakref__,__module__,__get__
11241131

1132+
.. automodule:: ingenico.connect.sdk.domain.payment.definitions.afr_name
1133+
:members:
1134+
:show-inheritance:
1135+
:undoc-members:
1136+
:special-members:
1137+
:exclude-members: __dict__,__weakref__,__module__,__get__
1138+
11251139
.. automodule:: ingenico.connect.sdk.domain.payment.definitions.amount_breakdown
11261140
:members:
11271141
:show-inheritance:
@@ -1752,6 +1766,13 @@ API Reference
17521766
:special-members:
17531767
:exclude-members: __dict__,__weakref__,__module__,__get__
17541768

1769+
.. automodule:: ingenico.connect.sdk.domain.payment.definitions.personal_identification
1770+
:members:
1771+
:show-inheritance:
1772+
:undoc-members:
1773+
:special-members:
1774+
:exclude-members: __dict__,__weakref__,__module__,__get__
1775+
17551776
.. automodule:: ingenico.connect.sdk.domain.payment.definitions.personal_information
17561777
:members:
17571778
:show-inheritance:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# This class was auto-generated from the API references found at
4+
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
5+
#
6+
from ingenico.connect.sdk.data_object import DataObject
7+
from ingenico.connect.sdk.domain.definitions.address import Address
8+
from ingenico.connect.sdk.domain.payment.definitions.afr_name import AfrName
9+
10+
11+
class AccountFundingRecipient(DataObject):
12+
"""
13+
| Object containing specific data regarding the recipient of an account funding transaction
14+
"""
15+
16+
__account_number = None
17+
__account_number_type = None
18+
__address = None
19+
__date_of_birth = None
20+
__name = None
21+
__partial_pan = None
22+
23+
@property
24+
def account_number(self):
25+
"""
26+
| Should be populated with the value of the corresponding accountNumberType of the recipient.
27+
28+
Type: str
29+
"""
30+
return self.__account_number
31+
32+
@account_number.setter
33+
def account_number(self, value):
34+
self.__account_number = value
35+
36+
@property
37+
def account_number_type(self):
38+
"""
39+
| Defines the account number type of the recipient. Possible values are:
40+
41+
* cash = Mode of payment is cash to the recipient.
42+
* walletId = Digital wallet ID.
43+
* routingNumber = Routing Transit Number is a code used by financial institutions to identify other financial institutions.
44+
* iban = International Bank Account Number, is a standard international numbering system for identifying bank accounts.
45+
* bicNumber = Bank Identification Code is a number that is used to identify a specific bank.
46+
47+
Type: str
48+
"""
49+
return self.__account_number_type
50+
51+
@account_number_type.setter
52+
def account_number_type(self, value):
53+
self.__account_number_type = value
54+
55+
@property
56+
def address(self):
57+
"""
58+
| Object containing the address details of the recipient of an account funding transaction.
59+
60+
Type: :class:`ingenico.connect.sdk.domain.definitions.address.Address`
61+
"""
62+
return self.__address
63+
64+
@address.setter
65+
def address(self, value):
66+
self.__address = value
67+
68+
@property
69+
def date_of_birth(self):
70+
"""
71+
| The date of birth of the recipient
72+
| Format: YYYYMMDD
73+
74+
Type: str
75+
"""
76+
return self.__date_of_birth
77+
78+
@date_of_birth.setter
79+
def date_of_birth(self, value):
80+
self.__date_of_birth = value
81+
82+
@property
83+
def name(self):
84+
"""
85+
| Object containing the name details of the recipient of an account funding transaction.
86+
87+
Type: :class:`ingenico.connect.sdk.domain.payment.definitions.afr_name.AfrName`
88+
"""
89+
return self.__name
90+
91+
@name.setter
92+
def name(self, value):
93+
self.__name = value
94+
95+
@property
96+
def partial_pan(self):
97+
"""
98+
| Either partialPan or accountnumber is required for merchants that use Merchant Category Code (MCC) 6012 for transactions involving UK costumers.
99+
100+
Type: str
101+
"""
102+
return self.__partial_pan
103+
104+
@partial_pan.setter
105+
def partial_pan(self, value):
106+
self.__partial_pan = value
107+
108+
def to_dictionary(self):
109+
dictionary = super(AccountFundingRecipient, self).to_dictionary()
110+
if self.account_number is not None:
111+
dictionary['accountNumber'] = self.account_number
112+
if self.account_number_type is not None:
113+
dictionary['accountNumberType'] = self.account_number_type
114+
if self.address is not None:
115+
dictionary['address'] = self.address.to_dictionary()
116+
if self.date_of_birth is not None:
117+
dictionary['dateOfBirth'] = self.date_of_birth
118+
if self.name is not None:
119+
dictionary['name'] = self.name.to_dictionary()
120+
if self.partial_pan is not None:
121+
dictionary['partialPan'] = self.partial_pan
122+
return dictionary
123+
124+
def from_dictionary(self, dictionary):
125+
super(AccountFundingRecipient, self).from_dictionary(dictionary)
126+
if 'accountNumber' in dictionary:
127+
self.account_number = dictionary['accountNumber']
128+
if 'accountNumberType' in dictionary:
129+
self.account_number_type = dictionary['accountNumberType']
130+
if 'address' in dictionary:
131+
if not isinstance(dictionary['address'], dict):
132+
raise TypeError('value \'{}\' is not a dictionary'.format(dictionary['address']))
133+
value = Address()
134+
self.address = value.from_dictionary(dictionary['address'])
135+
if 'dateOfBirth' in dictionary:
136+
self.date_of_birth = dictionary['dateOfBirth']
137+
if 'name' in dictionary:
138+
if not isinstance(dictionary['name'], dict):
139+
raise TypeError('value \'{}\' is not a dictionary'.format(dictionary['name']))
140+
value = AfrName()
141+
self.name = value.from_dictionary(dictionary['name'])
142+
if 'partialPan' in dictionary:
143+
self.partial_pan = dictionary['partialPan']
144+
return self

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

+24
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from ingenico.connect.sdk.data_object import DataObject
77
from ingenico.connect.sdk.domain.definitions.airline_data import AirlineData
88
from ingenico.connect.sdk.domain.definitions.lodging_data import LodgingData
9+
from ingenico.connect.sdk.domain.payment.definitions.account_funding_recipient import AccountFundingRecipient
910
from ingenico.connect.sdk.domain.payment.definitions.installments import Installments
1011
from ingenico.connect.sdk.domain.payment.definitions.level3_summary_data import Level3SummaryData
1112
from ingenico.connect.sdk.domain.payment.definitions.loan_recipient import LoanRecipient
@@ -14,6 +15,7 @@
1415

1516
class AdditionalOrderInput(DataObject):
1617

18+
__account_funding_recipient = None
1719
__airline_data = None
1820
__installments = None
1921
__level3_summary_data = None
@@ -23,6 +25,19 @@ class AdditionalOrderInput(DataObject):
2325
__order_date = None
2426
__type_information = None
2527

28+
@property
29+
def account_funding_recipient(self):
30+
"""
31+
| Object containing specific data regarding the recipient of an account funding transaction
32+
33+
Type: :class:`ingenico.connect.sdk.domain.payment.definitions.account_funding_recipient.AccountFundingRecipient`
34+
"""
35+
return self.__account_funding_recipient
36+
37+
@account_funding_recipient.setter
38+
def account_funding_recipient(self, value):
39+
self.__account_funding_recipient = value
40+
2641
@property
2742
def airline_data(self):
2843
"""
@@ -70,6 +85,8 @@ def loan_recipient(self):
7085
| Object containing specific data regarding the recipient of a loan in the UK
7186
7287
Type: :class:`ingenico.connect.sdk.domain.payment.definitions.loan_recipient.LoanRecipient`
88+
89+
Deprecated; No replacement
7390
"""
7491
return self.__loan_recipient
7592

@@ -134,6 +151,8 @@ def type_information(self, value):
134151

135152
def to_dictionary(self):
136153
dictionary = super(AdditionalOrderInput, self).to_dictionary()
154+
if self.account_funding_recipient is not None:
155+
dictionary['accountFundingRecipient'] = self.account_funding_recipient.to_dictionary()
137156
if self.airline_data is not None:
138157
dictionary['airlineData'] = self.airline_data.to_dictionary()
139158
if self.installments is not None:
@@ -154,6 +173,11 @@ def to_dictionary(self):
154173

155174
def from_dictionary(self, dictionary):
156175
super(AdditionalOrderInput, self).from_dictionary(dictionary)
176+
if 'accountFundingRecipient' in dictionary:
177+
if not isinstance(dictionary['accountFundingRecipient'], dict):
178+
raise TypeError('value \'{}\' is not a dictionary'.format(dictionary['accountFundingRecipient']))
179+
value = AccountFundingRecipient()
180+
self.account_funding_recipient = value.from_dictionary(dictionary['accountFundingRecipient'])
157181
if 'airlineData' in dictionary:
158182
if not isinstance(dictionary['airlineData'], dict):
159183
raise TypeError('value \'{}\' is not a dictionary'.format(dictionary['airlineData']))
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# This class was auto-generated from the API references found at
4+
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
5+
#
6+
from ingenico.connect.sdk.data_object import DataObject
7+
8+
9+
class AfrName(DataObject):
10+
11+
__first_name = None
12+
__surname = None
13+
14+
@property
15+
def first_name(self):
16+
"""
17+
| Given name(s) or first name(s) of the recipient of an account funding transaction.
18+
19+
Type: str
20+
"""
21+
return self.__first_name
22+
23+
@first_name.setter
24+
def first_name(self, value):
25+
self.__first_name = value
26+
27+
@property
28+
def surname(self):
29+
"""
30+
| Surname(s) or last name(s) of the customer
31+
32+
Type: str
33+
"""
34+
return self.__surname
35+
36+
@surname.setter
37+
def surname(self, value):
38+
self.__surname = value
39+
40+
def to_dictionary(self):
41+
dictionary = super(AfrName, self).to_dictionary()
42+
if self.first_name is not None:
43+
dictionary['firstName'] = self.first_name
44+
if self.surname is not None:
45+
dictionary['surname'] = self.surname
46+
return dictionary
47+
48+
def from_dictionary(self, dictionary):
49+
super(AfrName, self).from_dictionary(dictionary)
50+
if 'firstName' in dictionary:
51+
self.first_name = dictionary['firstName']
52+
if 'surname' in dictionary:
53+
self.surname = dictionary['surname']
54+
return self

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

+21
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class Customer(CustomerBase):
2323
__contact_details = None
2424
__device = None
2525
__fiscal_number = None
26+
__is_company = None
2627
__is_previous_customer = None
2728
__locale = None
2829
__personal_information = None
@@ -129,6 +130,22 @@ def fiscal_number(self):
129130
def fiscal_number(self, value):
130131
self.__fiscal_number = value
131132

133+
@property
134+
def is_company(self):
135+
"""
136+
| Indicates if the payer is a company or an individual
137+
138+
* true = This is a company
139+
* false = This is an individual
140+
141+
Type: bool
142+
"""
143+
return self.__is_company
144+
145+
@is_company.setter
146+
def is_company(self, value):
147+
self.__is_company = value
148+
132149
@property
133150
def is_previous_customer(self):
134151
"""
@@ -200,6 +217,8 @@ def to_dictionary(self):
200217
dictionary['device'] = self.device.to_dictionary()
201218
if self.fiscal_number is not None:
202219
dictionary['fiscalNumber'] = self.fiscal_number
220+
if self.is_company is not None:
221+
dictionary['isCompany'] = self.is_company
203222
if self.is_previous_customer is not None:
204223
dictionary['isPreviousCustomer'] = self.is_previous_customer
205224
if self.locale is not None:
@@ -236,6 +255,8 @@ def from_dictionary(self, dictionary):
236255
self.device = value.from_dictionary(dictionary['device'])
237256
if 'fiscalNumber' in dictionary:
238257
self.fiscal_number = dictionary['fiscalNumber']
258+
if 'isCompany' in dictionary:
259+
self.is_company = dictionary['isCompany']
239260
if 'isPreviousCustomer' in dictionary:
240261
self.is_previous_customer = dictionary['isPreviousCustomer']
241262
if 'locale' in dictionary:

0 commit comments

Comments
 (0)