Source code for ingenico.connect.sdk.domain.payment.definitions.abstract_e_invoice_payment_method_specific_input
# -*- coding: utf-8 -*-
#
# This class was auto-generated from the API references found at
# https://epayments-api.developer-ingenico.com/
#
from ingenico.connect.sdk.domain.definitions.abstract_payment_method_specific_input import AbstractPaymentMethodSpecificInput
[docs]
class AbstractEInvoicePaymentMethodSpecificInput(AbstractPaymentMethodSpecificInput):
__requires_approval = None
@property
def requires_approval(self):
"""
Type: bool
"""
return self.__requires_approval
@requires_approval.setter
def requires_approval(self, value):
self.__requires_approval = value
[docs]
def to_dictionary(self):
dictionary = super(AbstractEInvoicePaymentMethodSpecificInput, self).to_dictionary()
if self.requires_approval is not None:
dictionary['requiresApproval'] = self.requires_approval
return dictionary
[docs]
def from_dictionary(self, dictionary):
super(AbstractEInvoicePaymentMethodSpecificInput, self).from_dictionary(dictionary)
if 'requiresApproval' in dictionary:
self.requires_approval = dictionary['requiresApproval']
return self