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

Commit

Permalink
Release 3.44.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
IngenicoEPayments committed Oct 26, 2023
1 parent 881f870 commit 37116b2
Show file tree
Hide file tree
Showing 12 changed files with 409 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.43.0'
version = '3.44.0'
# The full version, including alpha/beta/rc tags.
release = '3.43.0'
release = '3.44.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.43.0'
# html_title = 'Python SDK v3.44.0'

# A shorter title for the navigation bar. Default is the same as html_title.
#
Expand Down
21 changes: 21 additions & 0 deletions index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1108,6 +1108,13 @@ API Reference
:special-members:
:exclude-members: __dict__,__weakref__,__module__,__get__

.. automodule:: ingenico.connect.sdk.domain.payment.definitions.account_funding_recipient
:members:
:show-inheritance:
:undoc-members:
:special-members:
:exclude-members: __dict__,__weakref__,__module__,__get__

.. automodule:: ingenico.connect.sdk.domain.payment.definitions.additional_order_input
:members:
:show-inheritance:
Expand All @@ -1122,6 +1129,13 @@ API Reference
:special-members:
:exclude-members: __dict__,__weakref__,__module__,__get__

.. automodule:: ingenico.connect.sdk.domain.payment.definitions.afr_name
:members:
:show-inheritance:
:undoc-members:
:special-members:
:exclude-members: __dict__,__weakref__,__module__,__get__

.. automodule:: ingenico.connect.sdk.domain.payment.definitions.amount_breakdown
:members:
:show-inheritance:
Expand Down Expand Up @@ -1752,6 +1766,13 @@ API Reference
:special-members:
:exclude-members: __dict__,__weakref__,__module__,__get__

.. automodule:: ingenico.connect.sdk.domain.payment.definitions.personal_identification
:members:
:show-inheritance:
:undoc-members:
:special-members:
:exclude-members: __dict__,__weakref__,__module__,__get__

.. automodule:: ingenico.connect.sdk.domain.payment.definitions.personal_information
:members:
:show-inheritance:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
# -*- coding: utf-8 -*-
#
# This class was auto-generated from the API references found at
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
from ingenico.connect.sdk.data_object import DataObject
from ingenico.connect.sdk.domain.definitions.address import Address
from ingenico.connect.sdk.domain.payment.definitions.afr_name import AfrName


class AccountFundingRecipient(DataObject):
"""
| Object containing specific data regarding the recipient of an account funding transaction
"""

__account_number = None
__account_number_type = None
__address = None
__date_of_birth = None
__name = None
__partial_pan = None

@property
def account_number(self):
"""
| Should be populated with the value of the corresponding accountNumberType of the recipient.
Type: str
"""
return self.__account_number

@account_number.setter
def account_number(self, value):
self.__account_number = value

@property
def account_number_type(self):
"""
| Defines the account number type of the recipient. Possible values are:
* cash = Mode of payment is cash to the recipient.
* walletId = Digital wallet ID.
* routingNumber = Routing Transit Number is a code used by financial institutions to identify other financial institutions.
* iban = International Bank Account Number, is a standard international numbering system for identifying bank accounts.
* bicNumber = Bank Identification Code is a number that is used to identify a specific bank.
Type: str
"""
return self.__account_number_type

@account_number_type.setter
def account_number_type(self, value):
self.__account_number_type = value

@property
def address(self):
"""
| Object containing the address details of the recipient of an account funding transaction.
Type: :class:`ingenico.connect.sdk.domain.definitions.address.Address`
"""
return self.__address

@address.setter
def address(self, value):
self.__address = value

@property
def date_of_birth(self):
"""
| The date of birth of the recipient
| Format: YYYYMMDD
Type: str
"""
return self.__date_of_birth

@date_of_birth.setter
def date_of_birth(self, value):
self.__date_of_birth = value

@property
def name(self):
"""
| Object containing the name details of the recipient of an account funding transaction.
Type: :class:`ingenico.connect.sdk.domain.payment.definitions.afr_name.AfrName`
"""
return self.__name

@name.setter
def name(self, value):
self.__name = value

@property
def partial_pan(self):
"""
| Either partialPan or accountnumber is required for merchants that use Merchant Category Code (MCC) 6012 for transactions involving UK costumers.
Type: str
"""
return self.__partial_pan

@partial_pan.setter
def partial_pan(self, value):
self.__partial_pan = value

def to_dictionary(self):
dictionary = super(AccountFundingRecipient, self).to_dictionary()
if self.account_number is not None:
dictionary['accountNumber'] = self.account_number
if self.account_number_type is not None:
dictionary['accountNumberType'] = self.account_number_type
if self.address is not None:
dictionary['address'] = self.address.to_dictionary()
if self.date_of_birth is not None:
dictionary['dateOfBirth'] = self.date_of_birth
if self.name is not None:
dictionary['name'] = self.name.to_dictionary()
if self.partial_pan is not None:
dictionary['partialPan'] = self.partial_pan
return dictionary

def from_dictionary(self, dictionary):
super(AccountFundingRecipient, self).from_dictionary(dictionary)
if 'accountNumber' in dictionary:
self.account_number = dictionary['accountNumber']
if 'accountNumberType' in dictionary:
self.account_number_type = dictionary['accountNumberType']
if 'address' in dictionary:
if not isinstance(dictionary['address'], dict):
raise TypeError('value \'{}\' is not a dictionary'.format(dictionary['address']))
value = Address()
self.address = value.from_dictionary(dictionary['address'])
if 'dateOfBirth' in dictionary:
self.date_of_birth = dictionary['dateOfBirth']
if 'name' in dictionary:
if not isinstance(dictionary['name'], dict):
raise TypeError('value \'{}\' is not a dictionary'.format(dictionary['name']))
value = AfrName()
self.name = value.from_dictionary(dictionary['name'])
if 'partialPan' in dictionary:
self.partial_pan = dictionary['partialPan']
return self
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from ingenico.connect.sdk.data_object import DataObject
from ingenico.connect.sdk.domain.definitions.airline_data import AirlineData
from ingenico.connect.sdk.domain.definitions.lodging_data import LodgingData
from ingenico.connect.sdk.domain.payment.definitions.account_funding_recipient import AccountFundingRecipient
from ingenico.connect.sdk.domain.payment.definitions.installments import Installments
from ingenico.connect.sdk.domain.payment.definitions.level3_summary_data import Level3SummaryData
from ingenico.connect.sdk.domain.payment.definitions.loan_recipient import LoanRecipient
Expand All @@ -14,6 +15,7 @@

class AdditionalOrderInput(DataObject):

__account_funding_recipient = None
__airline_data = None
__installments = None
__level3_summary_data = None
Expand All @@ -23,6 +25,19 @@ class AdditionalOrderInput(DataObject):
__order_date = None
__type_information = None

@property
def account_funding_recipient(self):
"""
| Object containing specific data regarding the recipient of an account funding transaction
Type: :class:`ingenico.connect.sdk.domain.payment.definitions.account_funding_recipient.AccountFundingRecipient`
"""
return self.__account_funding_recipient

@account_funding_recipient.setter
def account_funding_recipient(self, value):
self.__account_funding_recipient = value

@property
def airline_data(self):
"""
Expand Down Expand Up @@ -70,6 +85,8 @@ def loan_recipient(self):
| Object containing specific data regarding the recipient of a loan in the UK
Type: :class:`ingenico.connect.sdk.domain.payment.definitions.loan_recipient.LoanRecipient`
Deprecated; No replacement
"""
return self.__loan_recipient

Expand Down Expand Up @@ -134,6 +151,8 @@ def type_information(self, value):

def to_dictionary(self):
dictionary = super(AdditionalOrderInput, self).to_dictionary()
if self.account_funding_recipient is not None:
dictionary['accountFundingRecipient'] = self.account_funding_recipient.to_dictionary()
if self.airline_data is not None:
dictionary['airlineData'] = self.airline_data.to_dictionary()
if self.installments is not None:
Expand All @@ -154,6 +173,11 @@ def to_dictionary(self):

def from_dictionary(self, dictionary):
super(AdditionalOrderInput, self).from_dictionary(dictionary)
if 'accountFundingRecipient' in dictionary:
if not isinstance(dictionary['accountFundingRecipient'], dict):
raise TypeError('value \'{}\' is not a dictionary'.format(dictionary['accountFundingRecipient']))
value = AccountFundingRecipient()
self.account_funding_recipient = value.from_dictionary(dictionary['accountFundingRecipient'])
if 'airlineData' in dictionary:
if not isinstance(dictionary['airlineData'], dict):
raise TypeError('value \'{}\' is not a dictionary'.format(dictionary['airlineData']))
Expand Down
54 changes: 54 additions & 0 deletions ingenico/connect/sdk/domain/payment/definitions/afr_name.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# -*- coding: utf-8 -*-
#
# This class was auto-generated from the API references found at
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
from ingenico.connect.sdk.data_object import DataObject


class AfrName(DataObject):

__first_name = None
__surname = None

@property
def first_name(self):
"""
| Given name(s) or first name(s) of the recipient of an account funding transaction.
Type: str
"""
return self.__first_name

@first_name.setter
def first_name(self, value):
self.__first_name = value

@property
def surname(self):
"""
| Surname(s) or last name(s) of the customer
Type: str
"""
return self.__surname

@surname.setter
def surname(self, value):
self.__surname = value

def to_dictionary(self):
dictionary = super(AfrName, self).to_dictionary()
if self.first_name is not None:
dictionary['firstName'] = self.first_name
if self.surname is not None:
dictionary['surname'] = self.surname
return dictionary

def from_dictionary(self, dictionary):
super(AfrName, self).from_dictionary(dictionary)
if 'firstName' in dictionary:
self.first_name = dictionary['firstName']
if 'surname' in dictionary:
self.surname = dictionary['surname']
return self
21 changes: 21 additions & 0 deletions ingenico/connect/sdk/domain/payment/definitions/customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class Customer(CustomerBase):
__contact_details = None
__device = None
__fiscal_number = None
__is_company = None
__is_previous_customer = None
__locale = None
__personal_information = None
Expand Down Expand Up @@ -129,6 +130,22 @@ def fiscal_number(self):
def fiscal_number(self, value):
self.__fiscal_number = value

@property
def is_company(self):
"""
| Indicates if the payer is a company or an individual
* true = This is a company
* false = This is an individual
Type: bool
"""
return self.__is_company

@is_company.setter
def is_company(self, value):
self.__is_company = value

@property
def is_previous_customer(self):
"""
Expand Down Expand Up @@ -200,6 +217,8 @@ def to_dictionary(self):
dictionary['device'] = self.device.to_dictionary()
if self.fiscal_number is not None:
dictionary['fiscalNumber'] = self.fiscal_number
if self.is_company is not None:
dictionary['isCompany'] = self.is_company
if self.is_previous_customer is not None:
dictionary['isPreviousCustomer'] = self.is_previous_customer
if self.locale is not None:
Expand Down Expand Up @@ -236,6 +255,8 @@ def from_dictionary(self, dictionary):
self.device = value.from_dictionary(dictionary['device'])
if 'fiscalNumber' in dictionary:
self.fiscal_number = dictionary['fiscalNumber']
if 'isCompany' in dictionary:
self.is_company = dictionary['isCompany']
if 'isPreviousCustomer' in dictionary:
self.is_previous_customer = dictionary['isPreviousCustomer']
if 'locale' in dictionary:
Expand Down
Loading

0 comments on commit 37116b2

Please sign in to comment.