Source code for worldline.connect.sdk.v1.domain.approve_payment_mobile_payment_method_specific_output

# -*- coding: utf-8 -*-
#
# This class was auto-generated from the API references found at
# https://apireference.connect.worldline-solutions.com/
#
from typing import Optional

from worldline.connect.sdk.domain.data_object import DataObject


[docs] class ApprovePaymentMobilePaymentMethodSpecificOutput(DataObject): """ | Mobile payment specific response data """ __void_response_id: Optional[str] = None @property def void_response_id(self) -> Optional[str]: """ | 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: Optional[str]) -> None: self.__void_response_id = value
[docs] def to_dictionary(self) -> dict: 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: dict) -> 'ApprovePaymentMobilePaymentMethodSpecificOutput': super(ApprovePaymentMobilePaymentMethodSpecificOutput, self).from_dictionary(dictionary) if 'voidResponseId' in dictionary: self.void_response_id = dictionary['voidResponseId'] return self