Source code for ingenico.connect.sdk.domain.product.definitions.mobile_payment_product_session302_specific_input

# -*- 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 MobilePaymentProductSession302SpecificInput(DataObject): __display_name = None __domain_name = None __validation_url = None @property def display_name(self): """ | Used as an input for the Apple Pay payment button. Provide your company name in a human readable form. Type: str """ return self.__display_name @display_name.setter def display_name(self, value): self.__display_name = value @property def domain_name(self): """ | Provide a fully qualified domain name of your own payment page that will be showing an Apple Pay button. Type: str """ return self.__domain_name @domain_name.setter def domain_name(self, value): self.__domain_name = value @property def validation_url(self): """ | Provide the validation URL that has been provided by Apple once you have started an Apple Pay session. Type: str """ return self.__validation_url @validation_url.setter def validation_url(self, value): self.__validation_url = value
[docs] def to_dictionary(self): dictionary = super(MobilePaymentProductSession302SpecificInput, self).to_dictionary() if self.display_name is not None: dictionary['displayName'] = self.display_name if self.domain_name is not None: dictionary['domainName'] = self.domain_name if self.validation_url is not None: dictionary['validationUrl'] = self.validation_url return dictionary
[docs] def from_dictionary(self, dictionary): super(MobilePaymentProductSession302SpecificInput, self).from_dictionary(dictionary) if 'displayName' in dictionary: self.display_name = dictionary['displayName'] if 'domainName' in dictionary: self.domain_name = dictionary['domainName'] if 'validationUrl' in dictionary: self.validation_url = dictionary['validationUrl'] return self