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

# -*- 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 RedirectPaymentProduct4101SpecificInput(DataObject): """ | Please find below specific input fields for payment product 4101 (UPI) """ __display_name: Optional[str] = None __integration_type: Optional[str] = None __virtual_payment_address: Optional[str] = None @property def display_name(self) -> Optional[str]: """ | The merchant name as shown to the customer in some payment applications. Type: str """ return self.__display_name @display_name.setter def display_name(self, value: Optional[str]) -> None: self.__display_name = value @property def integration_type(self) -> Optional[str]: """ | The value of this property must be 'vpa', 'desktopQRCode', or 'urlIntent'. Type: str """ return self.__integration_type @integration_type.setter def integration_type(self, value: Optional[str]) -> None: self.__integration_type = value @property def virtual_payment_address(self) -> Optional[str]: """ | The Virtual Payment Address (VPA) of the customer. The '+' character is not allowed in this property for transactions that are processed by TechProcess Payment Platform. Type: str """ return self.__virtual_payment_address @virtual_payment_address.setter def virtual_payment_address(self, value: Optional[str]) -> None: self.__virtual_payment_address = value
[docs] def to_dictionary(self) -> dict: dictionary = super(RedirectPaymentProduct4101SpecificInput, self).to_dictionary() if self.display_name is not None: dictionary['displayName'] = self.display_name if self.integration_type is not None: dictionary['integrationType'] = self.integration_type if self.virtual_payment_address is not None: dictionary['virtualPaymentAddress'] = self.virtual_payment_address return dictionary
[docs] def from_dictionary(self, dictionary: dict) -> 'RedirectPaymentProduct4101SpecificInput': super(RedirectPaymentProduct4101SpecificInput, self).from_dictionary(dictionary) if 'displayName' in dictionary: self.display_name = dictionary['displayName'] if 'integrationType' in dictionary: self.integration_type = dictionary['integrationType'] if 'virtualPaymentAddress' in dictionary: self.virtual_payment_address = dictionary['virtualPaymentAddress'] return self