Source code for worldline.connect.sdk.v1.domain.redirect_payment_product4101_specific_input_base
# -*- 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.v1.domain.abstract_redirect_payment_product4101_specific_input import AbstractRedirectPaymentProduct4101SpecificInput
[docs]
class RedirectPaymentProduct4101SpecificInputBase(AbstractRedirectPaymentProduct4101SpecificInput):
"""
| Please find below specific input fields for payment product 4101 (UPI)
"""
__display_name: 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
[docs]
def to_dictionary(self) -> dict:
dictionary = super(RedirectPaymentProduct4101SpecificInputBase, self).to_dictionary()
if self.display_name is not None:
dictionary['displayName'] = self.display_name
return dictionary
[docs]
def from_dictionary(self, dictionary: dict) -> 'RedirectPaymentProduct4101SpecificInputBase':
super(RedirectPaymentProduct4101SpecificInputBase, self).from_dictionary(dictionary)
if 'displayName' in dictionary:
self.display_name = dictionary['displayName']
return self