Source code for ingenico.connect.sdk.domain.payment.definitions.redirect_payment_product861_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 RedirectPaymentProduct861SpecificInput(DataObject):
__mobile_device = None
@property
def mobile_device(self):
"""
| This indicates that a customer is on a mobile device and it is used to distinguish whether a customer should be redirected to AliPay Desktop or Mobile. Alternatively, if you cannot determine whether a customer is on a mobile device or not, a customer can be redirected to AliPay Mobile if the property CreatePaymentRequest.order.customer.device.userAgent is supplied.
Type: bool
"""
return self.__mobile_device
@mobile_device.setter
def mobile_device(self, value):
self.__mobile_device = value
[docs] def to_dictionary(self):
dictionary = super(RedirectPaymentProduct861SpecificInput, self).to_dictionary()
if self.mobile_device is not None:
dictionary['mobileDevice'] = self.mobile_device
return dictionary
[docs] def from_dictionary(self, dictionary):
super(RedirectPaymentProduct861SpecificInput, self).from_dictionary(dictionary)
if 'mobileDevice' in dictionary:
self.mobile_device = dictionary['mobileDevice']
return self