Source code for ingenico.connect.sdk.domain.payment.definitions.order_references_approve_payment
# -*- 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 OrderReferencesApprovePayment(DataObject):
__merchant_reference = None
@property
def merchant_reference(self):
"""
| Your (unique) reference for the transaction that you can use to reconcile our report files
Type: str
"""
return self.__merchant_reference
@merchant_reference.setter
def merchant_reference(self, value):
self.__merchant_reference = value
[docs] def to_dictionary(self):
dictionary = super(OrderReferencesApprovePayment, self).to_dictionary()
if self.merchant_reference is not None:
dictionary['merchantReference'] = self.merchant_reference
return dictionary
[docs] def from_dictionary(self, dictionary):
super(OrderReferencesApprovePayment, self).from_dictionary(dictionary)
if 'merchantReference' in dictionary:
self.merchant_reference = dictionary['merchantReference']
return self