Source code for ingenico.connect.sdk.domain.payment.definitions.payment_creation_references

# -*- coding: utf-8 -*-
#
# This class was auto-generated from the API references found at
# https://epayments-api.developer-ingenico.com/
#
from ingenico.connect.sdk.data_object import DataObject


[docs]class PaymentCreationReferences(DataObject): __additional_reference = None __external_reference = None @property def additional_reference(self): """ | The additional reference identifier for this transaction. Data in this property will also be returned in our report files, allowing you to reconcile them. Type: str """ return self.__additional_reference @additional_reference.setter def additional_reference(self, value): self.__additional_reference = value @property def external_reference(self): """ | The external reference identifier for this transaction. Data in this property will also be returned in our report files, allowing you to reconcile them. Type: str """ return self.__external_reference @external_reference.setter def external_reference(self, value): self.__external_reference = value
[docs] def to_dictionary(self): dictionary = super(PaymentCreationReferences, self).to_dictionary() if self.additional_reference is not None: dictionary['additionalReference'] = self.additional_reference if self.external_reference is not None: dictionary['externalReference'] = self.external_reference return dictionary
[docs] def from_dictionary(self, dictionary): super(PaymentCreationReferences, self).from_dictionary(dictionary) if 'additionalReference' in dictionary: self.additional_reference = dictionary['additionalReference'] if 'externalReference' in dictionary: self.external_reference = dictionary['externalReference'] return self