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

# -*- 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 ApprovePaymentMobilePaymentMethodSpecificOutput(DataObject): """ | Mobile payment specific response data """ __void_response_id = None @property def void_response_id(self): """ | Result of the authorization reversal request | Possible values are: * 00 - Successful reversal * 0, 8 or 11 - Reversal request submitted * 5 or 55 - Reversal request declined or referred * empty or 98 - The provider did not provide a response Type: str """ return self.__void_response_id @void_response_id.setter def void_response_id(self, value): self.__void_response_id = value
[docs] def to_dictionary(self): dictionary = super(ApprovePaymentMobilePaymentMethodSpecificOutput, self).to_dictionary() if self.void_response_id is not None: dictionary['voidResponseId'] = self.void_response_id return dictionary
[docs] def from_dictionary(self, dictionary): super(ApprovePaymentMobilePaymentMethodSpecificOutput, self).from_dictionary(dictionary) if 'voidResponseId' in dictionary: self.void_response_id = dictionary['voidResponseId'] return self